Skip to content

Commit

Permalink
Enable publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoisChabot committed Apr 21, 2021
1 parent aacf384 commit b0e2646
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: pnpm run licenseCheck

# Source Tests
- name: Unit tests
- name: Source tests
env:
TEST: FULL
run: pnpm run test:full
Expand All @@ -63,7 +63,6 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]

Expand All @@ -87,19 +86,22 @@ jobs:
- name: Test
working-directory: ./test-dist
run: npm test

publish:
needs: dist-test
runs-on: ubuntu-latest
steps:
- name: Use Node.js 15.x
uses: actions/setup-node@v2
with:
node-version: 15.x

# publish:
# - name: Use Node.js 15.x
# uses: actions/setup-node@v2
# with:
# node-version: 15.x

# - name: Obtain build
# uses: actions/download-artifact@v2
# with:
# name: dist
# path: .
- name: Obtain build
uses: actions/download-artifact@v2
with:
name: dist
path: .

# - run: npm publish --access public
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit b0e2646

Please sign in to comment.