Skip to content

Commit

Permalink
new publish version
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklas Westman authored and Niklas Westman committed Dec 17, 2020
1 parent 9709ddd commit b2cbffc
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,14 @@ on:

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '14.x'
registry-url: https://registry.npmjs.org
- name: Publish
- run: npm install
- run: npm run build --if-present
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
registry-url: https://registry.npmjs.org/
- run: npm i
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit b2cbffc

Please sign in to comment.