Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vannvan committed Nov 21, 2023
1 parent 1c2c65a commit 6295dfd
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,28 @@ jobs:
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_WORKFLOW}}



publish-task:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run tsc
- name: Publish
# run: pnpm publish -r --dry-run
run: pnpm publish -r
env:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Build
run: pnpm run tsc
- name: Publish
# run: pnpm publish -r --dry-run
run: pnpm publish -r
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_WORKFLOW}}

0 comments on commit 6295dfd

Please sign in to comment.