-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (39 loc) · 1.07 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
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Release Changeset
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
permissions:
contents: write
issues: write
pull-requests: write
if: github.repository == 'BunnyWay/edge-script-sdk'
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
token: ${{ secrets.BUNNY_GITHUB }}
- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Setup Javascript
uses: ./.github/actions/setup-project
- name: Create Release Pull Request
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.BUNNY_GITHUB }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
publish: "pnpm ci:publish"
version: "pnpm ci:version"
title: "🎉 Release"
createGithubReleases: true