-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (33 loc) · 1.02 KB
/
publish.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
# Name of our action
name: Publish to NPM
# The event that will trigger the action
on:
push:
branches: [main]
# The permissions that the action will need
permissions:
contents: write
# What the action will do
jobs:
release:
# The operating system it will run on
runs-on: ubuntu-latest
# The conditions that the action will run under
if: ${{ !contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci') }}
# The list of steps that the action will go through
steps:
- uses: actions/checkout@v4
- name: Prepare repository
run: git fetch --unshallow --tags
- name: Setup Node.js
uses: actions/setup-node@v3
- name: Setup Bun
uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install --no-save
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
bun run release