Skip to content

Commit 7f6919e

Browse files
committed
refactor: update github action
1 parent f535f45 commit 7f6919e

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

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

+5-15
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,18 @@ on:
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
id-token: write
16+
packages: write
17+
attestations: write
1318
steps:
1419
- uses: actions/checkout@v3
1520
- uses: actions/setup-node@v3
1621
with:
1722
node-version: 16
1823
registry-url: https://registry.npmjs.org/
1924

20-
- name: Temp disable SSL Verification for registry.npm.taobao.org
21-
run: npm config set strict-ssl false
22-
2325
- run: npm install
2426
- run: npm test
2527

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

36-
- name: Temp disable SSL Verification for registry.npm.taobao.org
37-
run: npm config set strict-ssl false
38-
3938
- run: npm install
4039

41-
- name: Reenable SSL Verification for registry.npm.taobao.org
42-
run: npm config set strict-ssl true
43-
4440
- run: npm run build
4541

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

61-
- name: Temp disable SSL Verification for registry.npm.taobao.org
62-
run: npm config set strict-ssl false
63-
6457
- run: npm install
6558

66-
- name: Reenable SSL Verification for registry.npm.taobao.org
67-
run: npm config set strict-ssl true
68-
6959
- name: Update package.json name
7060
run: sed -i '2,2s/node-sql-parser/@taozhi8833998\/node-sql-parser/g' package.json
7161

.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"**/.DS_Store": true,
1313
"node_modules": true,
1414
"output": true,
15-
"package-lock.json": true
15+
"package-lock.json": false
1616
}
1717
}

0 commit comments

Comments
 (0)