Skip to content

Commit

Permalink
Merge pull request #17 from tylermilner/release/v1.0.1
Browse files Browse the repository at this point in the history
Implement release automation
  • Loading branch information
tylermilner authored Apr 8, 2024
2 parents 61dab46 + c0bc604 commit cf0de22
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish

on:
release:
types: [published, edited]

permissions: read-all

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 }}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ and this project adheres to

## [Unreleased]

## [1.0.1-beta.1] - 2024-04-08

### Added

- Added comments for `main.js`
Expand All @@ -28,6 +30,8 @@ and this project adheres to

[unreleased]:
https://github.com/tylermilner/last-successful-commit-hash-action/compare/v1.0.0...HEAD
[1.0.1-beta.1]:
https://github.com/tylermilner/last-successful-commit-hash-action/compare/v1.0.0...v1.0.1-beta.1
[1.0.0]:
https://github.com/tylermilner/last-successful-commit-hash-action/releases/tag/v1.0.0

Expand Down
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 cf0de22

Please sign in to comment.