Skip to content

Commit

Permalink
Fix npm publish workflow issue (#19)
Browse files Browse the repository at this point in the history
* fix npm publish workflow issue
  • Loading branch information
wujjpp authored Jun 10, 2022
1 parent cec2574 commit 32763f0
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
types: [created]

jobs:
build:
publish:
runs-on: ubuntu-latest

strategy:
Expand All @@ -22,6 +22,7 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/

- name: Startup Nebula
run: |
Expand All @@ -41,19 +42,18 @@ jobs:
./console.sh -f /root/init-data.ngql
cd ..
- run: npm run build
- run: npm run test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: npm run build
- run: cd dist && npm publish
- name: Build
run: |
npm install --unsafe-perm
npm run build
- name: Unit Test
run: |
npm run test
- name: Publish NPM
run: |
cd dist
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit 32763f0

Please sign in to comment.