|
10 | 10 |
|
11 | 11 | jobs:
|
12 | 12 | release:
|
13 |
| - |
14 | 13 | runs-on: ubuntu-latest
|
15 |
| - |
| 14 | + |
16 | 15 | steps:
|
17 |
| - - uses: actions/checkout@v1 |
18 |
| - - uses: actions/setup-node@v1 |
19 |
| - with: |
20 |
| - node-version: '12.x' |
21 |
| - - name: Install latest npm |
22 |
| - run: | |
23 |
| - sudo npm install -g npm@ |
24 |
| - npm config set update-notifier false |
25 |
| - sudo chown -R $USER:$(id -gn $USER) /home/runner/.config |
26 |
| - - name: Authenticate with NPM |
27 |
| - run: | |
28 |
| - echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" > ~/.npmrc |
29 |
| - - name: Keep npm cache around to speed up installs |
30 |
| - uses: actions/cache@v1 |
31 |
| - with: |
32 |
| - path: ~/.npm |
33 |
| - key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} |
34 |
| - restore-keys: | |
35 |
| - ${{ runner.OS }}-build-${{ env.cache-name }}- |
36 |
| - ${{ runner.OS }}-build- |
37 |
| - ${{ runner.OS }}- |
38 |
| - - name: Install dependencies |
39 |
| - run: npm ci --no-audit |
40 |
| - - name: Semantic release |
41 |
| - continue-on-error: true |
42 |
| - run: | |
43 |
| - npm i --no-save semantic-release@next |
44 |
| - npx semantic-release |
| 16 | + - uses: actions/checkout@v1 |
| 17 | + - uses: actions/setup-node@v1 |
| 18 | + with: |
| 19 | + node-version: "12.x" |
| 20 | + - name: Install latest npm |
| 21 | + run: | |
| 22 | + sudo npm install -g npm@ |
| 23 | + npm config set update-notifier false |
| 24 | + sudo chown -R $USER:$(id -gn $USER) /home/runner/.config |
| 25 | + - name: Authenticate with NPM |
| 26 | + run: | |
| 27 | + echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" > ~/.npmrc |
| 28 | + - name: Keep npm cache around to speed up installs |
| 29 | + uses: actions/cache@v1 |
| 30 | + with: |
| 31 | + path: ~/.npm |
| 32 | + key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} |
| 33 | + restore-keys: | |
| 34 | + ${{ runner.OS }}-build-${{ env.cache-name }}- |
| 35 | + ${{ runner.OS }}-build- |
| 36 | + ${{ runner.OS }}- |
| 37 | + - name: Install dependencies |
| 38 | + run: npm ci --no-audit |
| 39 | + - name: Semantic release |
| 40 | + continue-on-error: true |
| 41 | + run: | |
| 42 | + npm i --no-save semantic-release |
| 43 | + npx semantic-release |
0 commit comments