Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
benVigie committed Nov 23, 2024
1 parent 1b262de commit d59241f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Publish package on npm registry

on:
release:
types: [released]
types: [created]

jobs:
build:
Expand All @@ -19,6 +19,16 @@ jobs:
- run: npm run build
- run: npm test

update-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: pocket-apps/action-update-version@v1
with:
files: 'package.json'
version-regexp: '\d+.\d+.\d+'
repo-token: ${{ secrets.GITHUB_TOKEN }}

publish-npm:
needs: build
runs-on: ubuntu-latest
Expand Down
17 changes: 0 additions & 17 deletions .github/workflows/release-created.yml

This file was deleted.

0 comments on commit d59241f

Please sign in to comment.