-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (43 loc) · 1.29 KB
/
changesets.yaml
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
name: Changesets
on:
push:
branches:
- main
paths:
- '.changeset/**'
- '.github/workflows/changesets.yaml'
workflow_dispatch:
env:
CI: true
jobs:
Version:
# prevents this action from running on forks
if: github.repository == 'evilmartians/harmony'
permissions:
contents: write # to create release (changesets/action)
pull-requests: write # to create pull request (changesets/action)
id-token: write # OpenID Connect token needed for provenance
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Install node dependencies
run: 'deno install'
- name: Create release PR or Publish to npm
uses: changesets/action@v1
with:
version: deno task ci:changesets:version
publish: deno task ci:changesets:publish
commit: 'Changesets versioning & publication'
title: 'Changesets: Versioning & Publication'
createGithubReleases: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}