2021-07-23 23:15:52 +02:00
|
|
|
name: 'Release'
|
2020-12-27 18:42:48 +01:00
|
|
|
|
|
|
|
on:
|
2021-07-23 23:15:52 +02:00
|
|
|
push:
|
|
|
|
branches: [master]
|
2020-12-27 18:42:48 +01:00
|
|
|
|
|
|
|
jobs:
|
2021-07-23 23:15:52 +02:00
|
|
|
release:
|
2020-12-27 18:42:48 +01:00
|
|
|
runs-on: 'ubuntu-latest'
|
|
|
|
steps:
|
2022-04-07 10:11:48 +02:00
|
|
|
- uses: 'actions/checkout@v3.0.0'
|
2020-12-27 18:42:48 +01:00
|
|
|
|
2021-07-01 09:27:46 +02:00
|
|
|
- name: 'Use Node.js'
|
2022-04-07 10:11:48 +02:00
|
|
|
uses: 'actions/setup-node@v3.1.0'
|
2021-03-08 14:33:53 +01:00
|
|
|
with:
|
2022-02-18 17:20:59 +01:00
|
|
|
node-version: 'lts/*'
|
2021-07-01 09:27:46 +02:00
|
|
|
cache: 'npm'
|
2021-03-08 14:33:53 +01:00
|
|
|
|
2021-07-01 09:27:46 +02:00
|
|
|
- name: 'Install'
|
|
|
|
run: 'npm install'
|
2021-03-08 14:33:53 +01:00
|
|
|
|
2021-07-23 23:15:52 +02:00
|
|
|
- name: 'Build Package'
|
2021-03-08 14:33:53 +01:00
|
|
|
run: 'npm run build'
|
2020-12-27 18:42:48 +01:00
|
|
|
|
2021-07-23 23:15:52 +02:00
|
|
|
- name: 'Release'
|
|
|
|
run: 'npm run release'
|
2020-12-27 18:42:48 +01:00
|
|
|
env:
|
2021-07-23 23:15:52 +02:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|