Skip to content

Commit dbe950f

Browse files
authored
ci: publish with provenance (#408)
* chore: update to yarn 4.9.0 Signed-off-by: Seren_Modz 21 <seren@kings-world.net> * ci: publish with provenance Signed-off-by: Seren_Modz 21 <seren@kings-world.net> * ci: replace the npmPublishProvenance config option with the --provenance flag Signed-off-by: Seren_Modz 21 <seren@kings-world.net> --------- Signed-off-by: Seren_Modz 21 <seren@kings-world.net>
1 parent ef259a2 commit dbe950f

File tree

6 files changed

+956
-938
lines changed

6 files changed

+956
-938
lines changed

.github/workflows/continuous-delivery.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
name: Publish Next to npm
1111
runs-on: ubuntu-latest
1212
if: github.repository_owner == 'skyra-project'
13+
permissions:
14+
id-token: write
1315
strategy:
1416
fail-fast: false
1517
matrix:
@@ -50,7 +52,7 @@ jobs:
5052
5153
yarn bump --preid "next.$(git rev-parse --verify --short HEAD)" --skip-changelog
5254
53-
yarn npm publish --tag next
55+
yarn npm publish --tag next --provenance
5456
env:
5557
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
5658
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
name: Publish @skyra/${{ github.event.inputs.package}}
1313
runs-on: ubuntu-latest
1414
if: github.repository_owner == 'skyra-project'
15+
permissions:
16+
id-token: write
1517
steps:
1618
- name: Checkout Project
1719
uses: actions/checkout@v4
@@ -46,6 +48,6 @@ jobs:
4648
run: |
4749
yarn config set npmAuthToken ${NODE_AUTH_TOKEN}
4850
yarn config set npmPublishRegistry "https://registry.yarnpkg.com"
49-
yarn npm publish
51+
yarn npm publish --provenance
5052
env:
5153
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

.yarn/releases/yarn-4.5.3.cjs

Lines changed: 0 additions & 934 deletions
This file was deleted.

.yarn/releases/yarn-4.9.0.cjs

Lines changed: 948 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ plugins:
1010
- path: .yarn/plugins/@yarnpkg/plugin-git-hooks.cjs
1111
spec: 'https://raw.githubusercontent.com/trufflehq/yarn-plugin-git-hooks/main/bundles/%40yarnpkg/plugin-git-hooks.js'
1212

13-
yarnPath: .yarn/releases/yarn-4.5.3.cjs
13+
yarnPath: .yarn/releases/yarn-4.9.0.cjs

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,5 @@
6767
"path": "./node_modules/cz-conventional-changelog"
6868
}
6969
},
70-
"packageManager": "yarn@4.5.3"
70+
"packageManager": "yarn@4.9.0"
7171
}

0 commit comments

Comments
 (0)