Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ on:
jobs:
publish:
runs-on: ubuntu-24.04
# Note: For full automation, we've removed the environment approval requirement
# If you want manual approval, uncomment the next line and configure the "publish" environment in GitHub
# environment: publish
# Records each publish on the repo's Deployments page, linked to the version on npm. The
# environment has no protection rules, so it does not gate the automated publish.
environment:
name: npm
url: https://www.npmjs.com/package/@mrjasonroy/cache-components-cache-handler/v/${{ steps.dist_tag.outputs.version }}
permissions:
contents: write # Required for creating releases
id-token: write # Required for npm provenance and trusted publishing
Expand Down Expand Up @@ -84,6 +86,7 @@ jobs:
id: dist_tag
run: |
VERSION=$(node -p "require('./packages/cache-handler/package.json').version")
echo "version=$VERSION" >> $GITHUB_OUTPUT
if [[ "$VERSION" == *"-alpha"* ]]; then
echo "tag=alpha" >> $GITHUB_OUTPUT
elif [[ "$VERSION" == *"-beta"* ]]; then
Expand Down
Loading