Skip to content

Commit b317635

Browse files
committed
ci: Switch release action to OIDC
1 parent 9a7dce7 commit b317635

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
schedule:
1414
- cron: "0 7 * * 1"
1515

16+
permissions:
17+
id-token: write
18+
contents: read
1619
jobs:
1720
build:
1821
runs-on: ubuntu-latest
@@ -106,13 +109,15 @@ jobs:
106109
publish_dir: website/public
107110
force_orphan: true
108111
deploy-npm:
112+
if: ${{ github.ref == 'refs/heads/master' }}
109113
needs: build
110114
runs-on: ubuntu-latest
111115
steps:
112116
- uses: actions/checkout@v5
113117
- uses: actions/setup-node@v6
114118
with:
115119
node-version: 'lts/*'
120+
registry-url: 'https://registry.npmjs.org'
116121
- run: sudo apt-get update
117122
- run: sudo apt-get install --yes --no-install-recommends optipng imagemagick build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev liblzma-dev
118123
- run: npm ci
@@ -126,5 +131,4 @@ jobs:
126131
- name: Release
127132
env:
128133
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
129-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
130134
run: npx semantic-release

0 commit comments

Comments
 (0)