-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.34 KB
/
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
38
39
40
41
42
43
44
45
46
name: build-and-release
on:
push:
tags:
- "*"
paths-ignore:
- "**.md"
jobs:
main:
runs-on: ubuntu-latest
steps:
# setup
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "18"
registry-url: "https://registry.npmjs.org"
- name: Reconfigure git
run: |
git config user.email "[email protected]"
git config user.name "Barchart Builder"
git config --global url.https://${{ secrets.API_TOKEN_GITHUB }}@github.com/.insteadOf ssh://[email protected]/
- name: Build library
run: |
yarn
yarn build:clear
yarn build:ts
yarn build:node
yarn build:types
ls -al dist
echo $GITHUB_REF_NAME
- name: Publish new build
run: |
yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: List files
run: ls -al
- name: Create Release
uses: ncipollo/release-action@v1
with:
bodyFile: "CHANGELOG.md"