Skip to content

Commit

Permalink
Merge pull request #9 from natahouse/develop
Browse files Browse the repository at this point in the history
feat: use gh actions to create release
  • Loading branch information
Minozzzi authored Mar 20, 2024
2 parents b6ee731 + f0f662f commit 97ba168
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,15 @@ jobs:
restore-keys: |
${{ runner.os }}-node-modules-
- name: Tag Name
id: set_tag
run: |
echo ::set-output name=tag::$(git describe HEAD --abbrev=0)
- name: Create Release
uses: actions/create-release@v1
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_name: Release ${{ steps.tag.outputs.tag }}
tag_name: ${{ steps.tag.outputs.tag }}
body_path: CHANGELOG.md
draft: false
prerelease: false
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="Release ${tag#v}" \
--notes-file CHANGELOG.md
- name: Login to npm
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
Expand Down

0 comments on commit 97ba168

Please sign in to comment.