-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (37 loc) · 929 Bytes
/
release.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
29
30
31
32
33
34
35
36
37
name: automatic release
on:
push:
branches:
- master
tags:
- "!*"
jobs:
tagging:
name: check version and tagging
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v1
- name: setup Node
uses: actions/setup-node@v1
with:
node-version: '20.5.0'
registry-url: 'https://registry.npmjs.org'
- name: install can-npm-publish and dependencies
run: |
yarn add can-npm-publish
yarn install
- name: check version and add tag
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
REPO: ${{github.repository}}
COMMIT: ${{github.sha}}
run: sh ./release.sh
- name: test
run: yarn test
- name: build
run: yarn build
- name: release
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}