Skip to content

Commit bbceb1a

Browse files
mvayngribexo-mv
andauthored
chore: OIDC publishing (#10)
* chore: id-token for oidc publishing * chore: provenance * refactor: mv permissions to the jb block * chore: add test branch for oidc * feat: test oidc publishing * chore: remove npm token for oidc * chore: split semantic-release and npm publish for oidc * chore: use npm token for read, oidc for publish * chore: upgrade to node 23 for npm 11 oidc support * chore: upgrade npm to 11 for oidc support * chore: upgrade node to 22.12 for npm 11 compat * chore: remove provenance flag for private package * feat: upgrade semantic-release/npm to 13.1.3 for oidc support * chore: regen lock * chore: upgrade semantic-release to 25 for oidc support * feat: verify oidc publishing with semantic-release 25 * chore: upgrade node to 22.14 for semantic-release 25 * chore: clean up releaserc --------- Co-authored-by: exo-mv <mark@exodus.io>
1 parent 69a6a70 commit bbceb1a

5 files changed

Lines changed: 1261 additions & 664 deletions

File tree

.github/workflows/build-npm.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Create a release
22
on: workflow_dispatch
3+
34
jobs:
45
build:
56
runs-on: ubuntu-latest
@@ -8,10 +9,9 @@ jobs:
89
contents: write # to be able to publish a GitHub release
910
issues: write # to be able to comment on released issues
1011
pull-requests: write # to be able to comment on released pull requests
11-
# id-token: write # to enable use of OIDC for npm provenance
12+
id-token: write # to enable use of OIDC for npm provenance
1213
env:
1314
WORKING_DIRECTORY: ./
14-
INPUT_TOKEN: ${{ secrets.NPM_TOKEN }}
1515
concurrency:
1616
group: npm-${{ github.ref }}
1717
cancel-in-progress: true
@@ -29,11 +29,11 @@ jobs:
2929
- name: Build package and documentation
3030
run: yarn build
3131

32-
- name: Build NPM Package
32+
- name: Upgrade npm for OIDC support
33+
run: npm install -g npm@11
34+
35+
- name: Semantic Release
3336
working-directory: packages/skia
34-
run: |
35-
yarn release
37+
run: yarn release
3638
env:
3739
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
39-
NPM_CONFIG_PROVENANCE: false

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v22.3.0
1+
v22.14.0

packages/skia/.releaserc

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
{
22
"branches": [
33
"main",
4-
{
5-
"name": "exodus-2.0.1",
6-
"prerelease": "rc"
7-
}
4+
{ "name": "exodus-2.0.1", "prerelease": "rc" }
85
],
96
"plugins": [
107
"@semantic-release/commit-analyzer",
118
"@semantic-release/release-notes-generator",
12-
[
13-
"@semantic-release/npm"
14-
],
15-
[
16-
"@semantic-release/github"
17-
]
9+
"@semantic-release/npm",
10+
"@semantic-release/github"
1811
]
1912
}

packages/skia/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"react-native-builder-bob": "0.18.2",
115115
"react-native-reanimated": "^3.0",
116116
"rimraf": "3.0.2",
117-
"semantic-release": "^24.1.0",
117+
"semantic-release": "^25.0.2",
118118
"ts-jest": "29.1.1",
119119
"ts-node": "^10.9.2",
120120
"typescript": "^5.2.2",

0 commit comments

Comments
 (0)