forked from ava-labs/avalanche-wallet-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 1.1 KB
/
master-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
name: Release master branch
on:
push:
branches:
- master
jobs:
release:
name: Release Master Branch
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: add .npmrc
run: echo '//registry.npmjs.org/:_authToken= ${{ secrets.NPM_TOKEN_READONLY }}' >> .npmrc
- name: Install dependencies
run: yarn install
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_BRANCH: master
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn run semantic-release
- name: Rebase dev branch
run: |
git checkout dev &&
git rebase master &&
git push origin dev