generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add automated release publishing workflow based on https://docs.githu…
…b.com/en/actions/creating-actions/releasing-and-maintaining-actions#setting-up-github-actions-workflows and https://github.com/github-developer/javascript-action/blob/main/.github/workflows/publish.yml.
- Loading branch information
1 parent
61dab46
commit e156e7b
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Publish | ||
|
||
on: | ||
release: | ||
types: [published, edited] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.release.tag_name }} | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
|
||
# Compile dist/index.js and bundle with action.yml | ||
# Force push major and minor tags, e.g. v1, v1.0 | ||
# See documentation: https://github.com/JasonEtco/build-and-tag-action | ||
- uses: JasonEtco/build-and-tag-action@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters