Skip to content

Commit 6a361d3

Browse files
Merge branch 'main' into upgrade/backstage-1.39.0
2 parents 54782ed + f31499d commit 6a361d3

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,19 @@ on:
77
push:
88
branches: [ "main" ]
99
workflow_dispatch:
10-
10+
11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
release:
1316
runs-on: ubuntu-latest
17+
environment: npm
18+
permissions:
19+
id-token: write
20+
contents: write
21+
issues: write
22+
pull-requests: write
1423
steps:
1524
- uses: actions/checkout@v4
1625
with:
@@ -19,6 +28,10 @@ jobs:
1928
with:
2029
node-version: 20
2130
registry-url: https://registry.npmjs.org/
31+
always-auth: true
32+
env:
33+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # required for semantic-release / CI
2235
- name: Enable Corepack (Yarn 4)
2336
run: corepack enable
2437
- run: yarn install --immutable
@@ -29,3 +42,4 @@ jobs:
2942
env:
3043
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3144
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
45+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # required for semantic-release / CI

0 commit comments

Comments
 (0)