Skip to content

Commit 2fcafaa

Browse files
committed
Validate release workflow publish inputs
1 parent 23bb69d commit 2fcafaa

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ jobs:
6666
id: metadata
6767
env:
6868
INPUT_VERSION: ${{ inputs.version }}
69-
CONFIRM_PUBLISH: ${{ inputs.confirm_publish }}
7069
run: |
7170
node <<'NODE'
7271
const fs = require('node:fs');
@@ -185,11 +184,11 @@ jobs:
185184
set -euo pipefail
186185
187186
yarn test
187+
yarn build
188188
189189
if node -e "process.exit(require('./package.json').scripts['verify:artifacts'] ? 0 : 1)"; then
190190
yarn verify:artifacts
191191
else
192-
yarn run build
193192
npm pack --dry-run
194193
fi
195194
@@ -204,7 +203,7 @@ jobs:
204203
205204
# No npm auth token secret is configured; npm uses GitHub OIDC trusted publishing.
206205
# Publish the validated dist/ tree without rerunning prepublishOnly.
207-
npm publish --ignore-scripts --provenance --tag "$NPM_TAG"
206+
npm publish --ignore-scripts --provenance --access public --tag "$NPM_TAG"
208207
209208
- name: Create local release tag
210209
env:

0 commit comments

Comments
 (0)