-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 872 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
name: Release
on:
push:
branches:
- release
- main
- beta
pull_request:
types: [synchronize, opened, reopened]
jobs:
release:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
PERSONAL_ACCESS_TOKEN_GITHUB: ${{ secrets.PERSONAL_ACCESS_TOKEN_GITHUB }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup SSH Agent
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Set up Bun
uses: oven-sh/setup-bun@v1
- name: Set up npm authentication
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Ensure no git lock before release
run: rm -f .git/index.lock
- name: Run Release Script
run: bun release.ts