Skip to content

Commit 46be6b7

Browse files
committed
refactor: install first
1 parent 837a57a commit 46be6b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/npm-publish-github-packages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ jobs:
3131
node-version: 16
3232
registry-url: https://npm.pkg.github.com/
3333
scope: '@taozhi8833998'
34+
- run: npm install
35+
- run: npm build
3436
- name: Update package.json name
3537
run: sed -i '2,2s/node-sql-parser/@taozhi8833998\/node-sql-parser/g' package.json
3638
- run: echo registry=https://npm.pkg.github.com/taozhi8833998 >> .npmrc
37-
- run: npm install
38-
- run: npm build
3939
- run: cd output/prod && npm publish
4040
env:
4141
NODE_AUTH_TOKEN: ${{secrets.PUBLISH_GITHUB_TOKEN}}

0 commit comments

Comments
 (0)