Skip to content

Merge pull request #16 from dskvr/hotfix/nip11-req-url #79

Merge pull request #16 from dskvr/hotfix/nip11-req-url

Merge pull request #16 from dskvr/hotfix/nip11-req-url #79

Workflow file for this run

name: publish to npm
on:
push:
branches:
- 'main'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
- run: npm install
- run: npm test
- id: publish
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
- if: steps.publish.outputs.type != 'none' && steps.publish.outputs.dry_run != true
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: v${{steps.publish.outputs.version}}
release_name: v${{steps.publish.outputs.version}}
body: ""
draft: false
prerelease: true