Skip to content

Commit

Permalink
fix for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbch committed Oct 5, 2019
1 parent 874ea82 commit 47a6e29
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,21 @@ jobs:
matrix:
node-version: [10.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm install
npm run build --if-present
# npm test
- name: npm publish
run: |
NPM_TOKEN=${{ secrets.NPM_TOKEN }} npm publish
env:
CI: true
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm install
npm run build --if-present
# npm test
- name: Authenticate with NPM
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
- name: npm publish
run: |
npm publish
env:
CI: true

0 comments on commit 47a6e29

Please sign in to comment.