Skip to content

Commit 3e3ee17

Browse files
authored
chore: Fix release (#528)
1 parent d9f65c2 commit 3e3ee17

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ jobs:
88
issues: write
99
steps:
1010
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
11+
with:
12+
fetch-depth: 0
13+
ref: main
1114
- name: Set git config safe.directory
1215
run: git config --global --add safe.directory "$(pwd)"
1316
- name: Set git identity
@@ -57,7 +60,7 @@ jobs:
5760
permissions:
5861
contents: read
5962
issues: write
60-
id-token: write # Required for provenance & Trusted Publishing.
63+
id-token: write # Required for Trusted Publishing.
6164
steps:
6265
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903
6366
with:
@@ -71,11 +74,9 @@ jobs:
7174
- name: Restore build artifact permissions
7275
run: cd dist && setfacl --restore=permissions-backup.acl
7376
continue-on-error: true
74-
- name: Install dependencies
75-
run: npm ci
76-
- name: Publish to npm with provenance
77+
- name: Publish to npm
7778
env:
78-
NPM_CONFIG_PROVENANCE: true
79+
NPM_TRUSTED_PUBLISHER: true
7980
run: npx -p publib@latest publib-npm
8081
release_maven:
8182
name: Publish to Maven Central

0 commit comments

Comments
 (0)