Skip to content

Commit 0c2395a

Browse files
authored
Merge pull request #23 from phantom/kuba/fix-publishing
fix: trusted publishing 3
2 parents e27e81e + e819454 commit 0c2395a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
env:
2121
# Force npm to emit provenance (SLSA) when publishing via OIDC.
2222
NPM_CONFIG_PROVENANCE: true
23-
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN_PHANTOM_SECURITY_BOT }}
2423

2524
steps:
2625
- name: Checkout Repo
@@ -33,8 +32,8 @@ jobs:
3332
uses: actions/setup-node@v4
3433
with:
3534
node-version: 20.x
35+
cache: "yarn"
3636
registry-url: "https://registry.npmjs.org"
37-
token: ${{ secrets.NPM_PUBLISH_TOKEN_PHANTOM_SECURITY_BOT }}
3837

3938
- name: Ensure npm 11.5.1+ for trusted publishing
4039
run: npm install -g npm@^11.5.1
@@ -44,10 +43,11 @@ jobs:
4443

4544
- name: Create Release Pull Request or Publish to npm
4645
id: changesets
47-
uses: changesets/action@v1
46+
uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba
4847
with:
4948
# This expects you to have a script called release which does a build for your packages and calls changeset publish
49+
version: yarn changeset version
5050
publish: yarn release
51+
commitMode: github-api
5152
env:
5253
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53-
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN_PHANTOM_SECURITY_BOT }}

0 commit comments

Comments
 (0)