-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (24 loc) · 884 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# @format
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Publish CI
on:
push:
branches: ['main']
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Publish
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'npm'
- name: CI setup
run: yarn ci
- name: Publish to NPM
run: yarn run semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}