-
-
Notifications
You must be signed in to change notification settings - Fork 89
32 lines (30 loc) · 943 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
name: Release
on:
push:
branches:
- main
jobs:
release:
name: Release Package
if: github.repository_owner == 'krshoss'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
node-version: 18.x
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build package
run: yarn build
env:
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
- name: Release package
run: yarn release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_AUTHOR_NAME: "Krish Gupta"
GIT_AUTHOR_EMAIL: "krshkun@proton.me"
GIT_COMMITTER_NAME: "Krish Gupta"
GIT_COMMITTER_EMAIL: "krshkun@proton.me"