Open History to see the last commit
1name: ci
2concurrency:
3 group: publish-${{ github.github.base_ref }}
4 cancel-in-progress: true
5on: [push]
6jobs:
7 test-and-publish:
8 if: github.event_name != 'pull_request'
9 name: 'Test & Publish'
10 runs-on: ubuntu-latest
11 steps:
12 - uses: actions/checkout@v2
13 with:
14 fetch-depth: '0'
15 - uses: actions/setup-node@v2
16 with:
17 node-version: 16
18 registry-url: https://registry.npmjs.org/
19 cache: 'npm'
20 - run: |
21 npm i
22 git config --global user.name 'Tanner Linsley'
23 git config --global user.email 'tannerlinsley@users.noreply.github.com'
24 npm run cipublish
25 env:
26 GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
27 GH_TOKEN: ${{ secrets.GH_TOKEN }}
28 NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
29 NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}