-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (29 loc) · 1.08 KB
/
changeset.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
name: Changesets
on:
push:
branches: [ "main" ]
env:
CI: true
jobs:
version:
runs-on: ubuntu-latest
permissions:
id-token: write # required for provenance https://docs.npmjs.com/generating-provenance-statements#publishing-packages-with-provenance-via-github-actions
contents: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node and PNPM
uses: ./.github/composite-actions/setup
- name: Install dependencies
run: pnpm i --frozen-lockfile
- name: Create release Pull Request or publish to NPM
uses: changesets/action@v1
with:
commit: "ci(changesets): version packages"
title: "Changeset: New Version"
publish: pnpm run ci-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.WORKLEAP_NPM_TOKEN }}