Skip to content

Commit

Permalink
ci: refactor step's name
Browse files Browse the repository at this point in the history
  • Loading branch information
peterleiva committed Nov 6, 2021
1 parent 4105fd0 commit e92f23d
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ jobs:
strategy:
fail-fast: true
matrix:
node: ["12.x", "14.x", "16.x"]
os: [ubuntu-latest]
node: ["12.x", "14.x", "16.x", "17.x"]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Installing node ${{matrix.node}} on ${{matrix.os}}
uses: actions/setup-node@v2
with:
node-version: ${{matrix.node}}
cache: "npm"
- run: npm ci
- run: npm test

Expand All @@ -24,12 +26,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Installing node
uses: actions/setup-node@v2
with:
node-version: 16
registry-url: "https://registry.npmjs.org"
cache: "npm"
- run: npm ci
- run: npm run build
- run: npm publish
- name: Building...
run: npm run build
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}

0 comments on commit e92f23d

Please sign in to comment.