Skip to content

Commit ed419f0

Browse files
authored
ci: oidc (#96)
1 parent ebae587 commit ed419f0

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Release
22

33
permissions:
4+
id-token: write # Required for OIDC
45
contents: write
56

67
on:
@@ -28,6 +29,9 @@ jobs:
2829
registry-url: 'https://registry.npmjs.org'
2930
cache: pnpm
3031

32+
- name: ⎔ Upgrade npm for OIDC support
33+
run: pnpm install -g npm@latest
34+
3135
- name: 📥 Install dependencies
3236
run: pnpm install --frozen-lockfile
3337

@@ -67,9 +71,18 @@ jobs:
6771
- name: 📦 Publish to NPM
6872
run: pnpm publish --no-git-checks
6973
env:
70-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
74+
NODE_AUTH_TOKEN: "" # Clear placeholder set by setup-node to enable OIDC
75+
7176

7277
- name: 📝 Update Changelog
7378
run: npx changelogithub
7479
env:
7580
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
81+
82+
- name: 📣 Notify release result
83+
if: always()
84+
uses: marimo-team/internal-gh-actions/release-notification@main
85+
with:
86+
status: ${{ job.status }}
87+
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL_RELEASES }}
88+
artifact-url: "https://npmjs.com/package/@marimo-team/codemirror-sql"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"sideEffects": false,
1010
"repository": {
1111
"type": "git",
12-
"url": "https://github.com/marimo-team/codemirror-sql"
12+
"url": "git+https://github.com/marimo-team/codemirror-sql.git"
1313
},
1414
"scripts": {
1515
"dev": "vite",
@@ -78,4 +78,4 @@
7878
"dependencies": {
7979
"node-sql-parser": "^5.3.13"
8080
}
81-
}
81+
}

0 commit comments

Comments
 (0)