Skip to content

Commit

Permalink
CI/fix: 📦 publish TS-API with pnpm (#3032)
Browse files Browse the repository at this point in the history
* use pnpm

* --no-git-checks

* use as command

* remove jstools, add registry & cache

* remove publish script

* remove types-bundle dep
  • Loading branch information
pLabarta authored Nov 7, 2024
1 parent e635b34 commit 40129ec
Show file tree
Hide file tree
Showing 3 changed files with 461 additions and 30 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/publish-typescript-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,20 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20.10.0
cache: pnpm
registry-url: https://registry.npmjs.org/
- name: Build Typescript Augment API package
run: |
cd typescript-api
pnpm i
pnpm i --frozen-lockfile
pnpm build
- name: Publish typescript API
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: typescript-api/package.json
dry-run: ${{ github.event.inputs.DryRun }}
run: |
cd typescript-api
if [ "${{ github.event.inputs.DryRun }}" == "true" ]; then
pnpm publish --access public --no-git-checks --dry-run
else
pnpm publish --access public --no-git-checks
fi
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
Loading

0 comments on commit 40129ec

Please sign in to comment.