Skip to content

Commit

Permalink
Add automated release publishing workflow based on https://docs.githu…
Browse files Browse the repository at this point in the history
  • Loading branch information
tylermilner committed Apr 8, 2024
1 parent 61dab46 commit e156e7b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
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 }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"version": "1.0.1",
"author": "Tyler Milner",
"private": true,
"main": "dist/index.js",
"homepage": "https://github.com/tylermilner/last-successful-commit-hash-action#readme",
"repository": {
"type": "git",
Expand Down

0 comments on commit e156e7b

Please sign in to comment.