Skip to content

Commit

Permalink
fix: npm release
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Fawcett authored and Steven Fawcett committed Dec 12, 2022
1 parent eb86656 commit f86539e
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Publish

on:
Expand All @@ -19,22 +16,14 @@ jobs:
- run: |
npm install
npm run build
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@main

- uses: rickstaa/action-create-tag@v1
with:
tag: ${{ steps.package-version.outputs.current-version }}
message: "Latest release"
force_push_tag: true

- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm publish

- run: npx semantic-release
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f86539e

Please sign in to comment.