-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.21 KB
/
publish.yml
File metadata and controls
51 lines (41 loc) · 1.21 KB
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
44
45
46
47
48
49
50
51
name: Publish NPM Packages
on:
push:
branches: [main]
env:
MISE_DISABLE_TOOLS: ffmpeg
jobs:
publish:
runs-on: ubuntu-latest
permissions:
id-token: write # Required for OIDC
contents: write
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
fetch-depth: 0
- name: Setup mise
uses: jdx/mise-action@c1ecc8f748cd28cdeabf76dab3cccde4ce692fe4 # v4
with:
experimental: true
- name: Install dependencies
run: mise install
- name: Run tests
run: mise run test
- name: Configure git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Publish @just-be/wildcard
id: publish-wildcard
continue-on-error: true
run: bun scripts/publish-package.ts wildcard
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish @just-be/deploy
id: publish-deploy
continue-on-error: true
run: bun scripts/publish-package.ts deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}