Skip to content

Commit

Permalink
Publish to npm workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Link- committed Oct 14, 2023
1 parent 7581c8c commit 0da2e41
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/post-release.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Publish Release
name: Publish release to NPM

on:
push:
tags:
- '*'
release:
types: [published]

permissions:
contents: write
Expand All @@ -16,19 +15,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Get version number
id: get_version
run: |
echo "version=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
- uses: actions/create-release@master
name: Create ${{ github.event.inputs.version }} Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: "${{ steps.get_version.outputs.version }}"
release_name: "${{ steps.get_version.outputs.version }}"

- name: Publish to NPM
uses: JS-DevTools/npm-publish@0f451a94170d1699fd50710966d48fb26194d939
with:
Expand Down

0 comments on commit 0da2e41

Please sign in to comment.