diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..3971812 --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 }} diff --git a/CHANGELOG.md b/CHANGELOG.md index c8592c9..83319e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ and this project adheres to ## [Unreleased] +## [1.0.1-beta.1] - 2024-04-08 + ### Added - Added comments for `main.js` @@ -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 diff --git a/package.json b/package.json index d2f00eb..fb38e47 100644 --- a/package.json +++ b/package.json @@ -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",