2023-07-05 22:49:45 +00:00
|
|
|
name: release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-07-24 22:21:32 +00:00
|
|
|
- name: Checkout
|
2023-10-18 14:42:56 +00:00
|
|
|
uses: actions/checkout@v4.1.1
|
2023-07-24 22:21:32 +00:00
|
|
|
|
2023-07-05 22:49:45 +00:00
|
|
|
- name: Setup Node.js
|
2023-10-24 14:35:32 +00:00
|
|
|
uses: actions/setup-node@v4.0.0
|
2023-07-05 22:49:45 +00:00
|
|
|
with:
|
|
|
|
node-version: '20.x'
|
2023-07-23 18:38:58 +00:00
|
|
|
cache: 'npm'
|
2023-07-17 00:03:06 +00:00
|
|
|
env:
|
|
|
|
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2023-07-05 22:49:45 +00:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci
|
|
|
|
|
|
|
|
- name: Semantic release
|
|
|
|
id: release
|
2023-09-13 14:53:41 +00:00
|
|
|
uses: ahmadnassri/action-semantic-release@v2.2.8
|
2023-07-05 22:49:45 +00:00
|
|
|
env:
|
2023-07-16 23:54:32 +00:00
|
|
|
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2023-07-17 00:09:55 +00:00
|
|
|
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2023-07-05 22:49:45 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|