-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 1.12 KB
/
release.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
name: Prepare or publish release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Prepare or publish release
if: github.repository == 'wpsocio/wp-projects'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.ACCESS_TOKEN_IR }}
- name: Setup Environment
uses: ./actions/setup
with:
enable-wireit-cache: true
- name: Setup PHP
run: "pnpm run setup:php"
- name: Setup git user
run: |
git config user.name "${{ secrets.GIT_USER_NAME_IR }}"
git config user.email "${{ secrets.GIT_USER_EMAIL_IR }}"
- name: Create Release Pull Request or Publish
uses: changesets/action@v1
with:
publish: pnpm release
version: pnpm prep-release
title: Prepare for next release
commit: Prepare for next release
setupGitUser: false
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN_IR }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN_IR }}