2021-06-15 01:47:25 +00:00
|
|
|
name: Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Release
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-03-06 00:23:16 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-06-15 01:47:25 +00:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
|
|
|
- name: Setup Node.js
|
2022-03-06 00:19:00 +00:00
|
|
|
uses: actions/setup-node@v3
|
2021-06-15 01:47:25 +00:00
|
|
|
with:
|
2022-05-11 01:01:52 +00:00
|
|
|
node-version: 14
|
2021-06-15 01:47:25 +00:00
|
|
|
- name: Cache
|
2022-03-27 19:47:49 +00:00
|
|
|
uses: actions/cache@v3
|
2021-06-15 01:47:25 +00:00
|
|
|
with:
|
|
|
|
path: ~/.npm
|
|
|
|
key: ${{ runner.os }}-npm-${{ hashFiles('**/package.json') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-npm-
|
|
|
|
- name: Install dependencies
|
|
|
|
run: npm i
|
|
|
|
env:
|
|
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
|
|
- name: Release
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
|
|
run: npx semantic-release
|