We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a79da46 commit f3c566aCopy full SHA for f3c566a
.github/workflows/ci.yml
@@ -10,6 +10,10 @@ on:
10
pull_request:
11
branches: [main]
12
13
+permissions:
14
+ id-token: write # Required for OIDC
15
+ contents: read
16
+
17
jobs:
18
build:
19
runs-on: ubuntu-latest
@@ -24,6 +28,7 @@ jobs:
24
28
uses: actions/setup-node@v4
25
29
with:
26
30
node-version: "24"
31
+ registry-url: "https://registry.npmjs.org"
27
32
33
- name: Cache node_modules
34
uses: actions/cache@v4
@@ -58,8 +63,5 @@ jobs:
58
63
VERSION="$(echo "$TAG_NAME" | cut -d'v' -f 2)"
59
64
echo "Publish a release version=$VERSION for tag $TAG_NAME"
60
65
npm --no-git-tag-version --allow-same-version version $VERSION
61
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
62
66
npm publish
67
if: ${{ env.TAG_NAME != '' }}
- env:
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments