-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (29 loc) · 827 Bytes
/
release.yml
File metadata and controls
34 lines (29 loc) · 827 Bytes
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
name: Release
on:
pull_request:
types: [closed]
branches:
- main
workflow_dispatch:
permissions:
id-token: write # Required for OIDC
contents: write # required for committing the version bump
jobs:
Release:
name: 🚀 Release
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged && startsWith(github.head_ref, 'release-please--branches--main')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 24
cache: "yarn"
registry-url: "https://registry.npmjs.org"
- name: Install Dependencies
run: yarn install --immutable
- name: Publish package
run: npm publish