-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 971 Bytes
/
release.yaml
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
name: Release
on:
push:
branches: [main]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org/"
- run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: Install dependencies
run: yarn install --immutable --immutable-cache --check-cache
- name: Install semantic-release extra plugins
run: npm install --save-dev @semantic-release/changelog @semantic-release/git
- run: yarn tsc
- run: yarn build
- name: Create .npmrc file
run: |
echo registry=https://registry.npmjs.org/ > .npmrc
echo '//npm.pkg.github.com/:_authToken=${{ secrets.GH_TOKEN }}' >> .npmrc
- name: Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release