Skip to content

Commit

Permalink
Update npm-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
macdonst authored Nov 14, 2020
1 parent e33cc28 commit a85ce68
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflow/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@ jobs:
# Run on latest version of ubuntu
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
# install Node.js
- name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12
# Specifies the registry, this field is required!
registry-url: https://registry.npmjs.org/
- run: npm install -g yarn
# clean install of your projects' deps. We use "npm ci" to avoid package lock changes
- run: yarn install
# build the project
- run: yarn run build
# run tests just in case
- run: yarn run test
# publish to NPM -> there is one caveat, continue reading for the fix
- run: npm publish
env:
# Use a token to publish to NPM. See below for how to set it up
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Checkout repository
uses: actions/checkout@v2
# install Node.js
- name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: 12
# Specifies the registry, this field is required!
registry-url: https://registry.npmjs.org/
- run: npm install -g yarn
# clean install of your projects' deps. We use "npm ci" to avoid package lock changes
- run: yarn install
# build the project
- run: yarn run build
# run tests just in case
- run: yarn run test
# publish to NPM -> there is one caveat, continue reading for the fix
- run: npm publish
env:
# Use a token to publish to NPM. See below for how to set it up
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit a85ce68

Please sign in to comment.