Skip to content

Commit

Permalink
Update node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 authored Feb 27, 2024
1 parent 4cd2850 commit 0e03065
Showing 1 changed file with 6 additions and 26 deletions.
32 changes: 6 additions & 26 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,29 +27,9 @@ jobs:
# - run: npm test
- name: Build
run: npm run build --if-present
- name: Artifact
uses: actions/upload-artifact@master
with:
name: build
path: build
publish:
needs: build
runs-on: ubuntu-latest
steps:
# The logic below handles the npm publication:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
- run: npm whoami
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Download Artifact
uses: actions/download-artifact@master
with:
name: build
path: build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: npm whoami
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 0e03065

Please sign in to comment.