Skip to content

Commit

Permalink
fix: update release workflows (#18)
Browse files Browse the repository at this point in the history
<!--
Thank you for proposing a pull request! Please note that SOME TESTS WILL
LIKELY FAIL due to how GitHub exposes secrets in Pull Requests from
forks.
Someone from the team will review your Pull Request and respond.

Please describe your change and any implementation details below.
-->
  • Loading branch information
verbanicm authored Oct 30, 2024
1 parent 76f0cca commit 12405cb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'Publish immutable action version'

on:
workflow_dispatch:
release:
types:
- 'published'

jobs:
publish:
runs-on: 'ubuntu-latest'
permissions:
contents: 'read'
id-token: 'write'
packages: 'write'

steps:
- name: 'Checkout'
uses: 'actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871' # ratchet:actions/checkout@v4

- name: 'Publish'
id: 'publish'
uses: 'actions/publish-immutable-action@4b1aa5c1cde5fedc80d52746c9546cb5560e5f53' # ratchet:actions/publish-immutable-action@v0.0.3
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ jobs:
version: 'latest'
args: 'release --clean'
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
# PAT token needed to allow for subsequent automation for publishing immuatable package
# The default GitHub token doesn't allow triggering of additional workflows
GITHUB_TOKEN: '${{ secrets.ACTIONS_BOT_TOKEN }}'

0 comments on commit 12405cb

Please sign in to comment.