Skip to content

Commit

Permalink
remove jstools, add registry & cache
Browse files Browse the repository at this point in the history
  • Loading branch information
pLabarta committed Nov 6, 2024
1 parent e138037 commit 991334a
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/publish-typescript-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +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 }}
registry: https://registry.npmjs.org/
access: public
command: pnpm publish
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}}

0 comments on commit 991334a

Please sign in to comment.