Skip to content

Commit

Permalink
refactor: update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
taozhi8833998 committed Jul 31, 2024
1 parent f535f45 commit 7f6919e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,18 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: write
attestations: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/

- name: Temp disable SSL Verification for registry.npm.taobao.org
run: npm config set strict-ssl false

- run: npm install
- run: npm test

Expand All @@ -33,14 +35,8 @@ jobs:
node-version: 16
registry-url: https://registry.npmjs.org/

- name: Temp disable SSL Verification for registry.npm.taobao.org
run: npm config set strict-ssl false

- run: npm install

- name: Reenable SSL Verification for registry.npm.taobao.org
run: npm config set strict-ssl true

- run: npm run build

- run: cd output/prod && npm publish
Expand All @@ -58,14 +54,8 @@ jobs:
registry-url: https://npm.pkg.github.com/
scope: '@taozhi8833998'

- name: Temp disable SSL Verification for registry.npm.taobao.org
run: npm config set strict-ssl false

- run: npm install

- name: Reenable SSL Verification for registry.npm.taobao.org
run: npm config set strict-ssl true

- name: Update package.json name
run: sed -i '2,2s/node-sql-parser/@taozhi8833998\/node-sql-parser/g' package.json

Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"**/.DS_Store": true,
"node_modules": true,
"output": true,
"package-lock.json": true
"package-lock.json": false
}
}

0 comments on commit 7f6919e

Please sign in to comment.