diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index d15effc..1b96212 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -4,23 +4,13 @@ name: Node.js Package on: - release: - types: [created] + push: + tags: + - 'v*' workflow_dispatch: jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 16 - - run: npm ci - # - run: npm test - publish-npm: - needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -32,3 +22,14 @@ jobs: - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} + + create-release: + runs-on: ubuntu-latest + steps: + - name: Create Release + id: create_release + uses: softprops/action-gh-release@v2 + with: + draft: false + prerelease: false + generate_release_notes: true