Skip to content

Commit bd68c25

Browse files
committed
chore: test trusted publishing
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent 99ff0a7 commit bd68c25

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
id-token: write # Enables provenance signing via OIDC
9494
packages: write # Allows writing to organization packages
9595
env:
96-
NPMJS_RELEASE_TAG: ${{ github.event.inputs.prerelease == 'true' && 'unstable-prerelease' || 'latest' }}
96+
PACKAGE_RELEASE_TAG: ${{ github.event.inputs.prerelease == 'true' && 'unstable-prerelease' || 'latest' }}
9797
steps:
9898
- name: Checkout code
9999
# see https://github.com/actions/checkout
@@ -121,12 +121,12 @@ jobs:
121121
npm run -- dev-setup:tools:test-dependencies --ignore-scripts --loglevel=silly
122122
echo "::endgroup::"
123123
# no explicit npm build. if a build is required, it should be configured as prepublish/prepublishOnly script of npm.
124-
- name: publish to NPMJS as "${{ env.NPMJS_RELEASE_TAG }}"
124+
- name: publish to NPMJS as "${{ env.PACKAGE_RELEASE_TAG }}"
125125
run: >
126126
npm publish
127127
--provenance
128128
--access public
129-
--tag "$NPMJS_RELEASE_TAG"
129+
--tag "$PACKAGE_RELEASE_TAG"
130130
- name: login to GH package registries
131131
run: npm config set "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN"
132132
- name: publish to GitHub as "${{ env.PACKAGE_RELEASE_TAG }}"

0 commit comments

Comments
 (0)