Skip to content

Commit 6d2e40b

Browse files
fix: resorted to only publish to npm registry
1 parent b2bfbe8 commit 6d2e40b

File tree

4 files changed

+4983
-10291
lines changed

4 files changed

+4983
-10291
lines changed

.github/workflows/codeql.yml

-42
This file was deleted.

.github/workflows/release.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ on:
66
- main
77

88
jobs:
9-
release:
9+
release-npm:
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: write
1313
issues: write
1414
pull-requests: write
1515
id-token: write
16-
packages: write
1716
steps:
1817
- name: Checkout Repository
1918
uses: actions/checkout@v3
@@ -22,6 +21,9 @@ jobs:
2221
uses: actions/setup-node@v3
2322
with:
2423
node-version: 18
24+
registry-url: https://registry.npmjs.org/
25+
env:
26+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2527

2628

2729
- name: Install Dependencies
@@ -32,9 +34,7 @@ jobs:
3234

3335
- name: Run Semantic Release
3436
env:
35-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36-
GITHUB_NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
GITHUB_NPM_CONFIG_REGISTRY: https://npm.pkg.github.com/
38-
PUBLIC_NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
39-
PUBLIC_NPM_CONFIG_REGISTRY: https://registry.npmjs.org/
37+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
39+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4040
run: npx semantic-release

0 commit comments

Comments
 (0)