Skip to content

Commit

Permalink
Merge pull request #60 from kheiakiyama/publish
Browse files Browse the repository at this point in the history
Support automate release for major version
  • Loading branch information
kheiakiyama authored Jan 2, 2024
2 parents 38200e9 + d6670e0 commit 78ba2f9
Show file tree
Hide file tree
Showing 3 changed files with 1,065 additions and 729 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
##
# Publish new action tag(s) for downstream consumption
# This action is referenced from https://github.com/github-developer/javascript-action/blob/main/.github/workflows/publish.yml
##
name: Publish

# Manual or automatic release
on:
release:
types: [published, edited]

jobs:
publish:
runs-on: ubuntu-latest
steps:
# Release with semantic tag like v1.0.3
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.release.tag_name }}

- name: Setup Node
uses: actions/setup-node@v2

- name: Install deps and build
run: npm run all
# 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 }}
Loading

0 comments on commit 78ba2f9

Please sign in to comment.