forked from latticexyz/mud
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 1.05 KB
/
prerelease-exit.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
name: Exit Prerelease Mode
on:
workflow_dispatch:
inputs:
branch:
description: "Exit prerelease mode on release branch"
type: string
default: "main"
required: true
jobs:
exit_prerelease:
name: Changesets Exit Prerelease
runs-on: ubuntu-latest
# Allow GITHUB_TOKEN to have write permissions
permissions:
contents: write
steps:
- uses: actions/checkout@v3
name: Checkout Repo
with:
submodules: recursive
- name: "Setup"
uses: ./.github/actions/setup
- name: Generate gas reports
run: pnpm gas-report
- name: Outdated files, run `pnpm gas-report` and commit them
uses: ./.github/actions/require-empty-diff
- name: Remove pre.json
run: pnpm changeset pre exit
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Exit prerelease mode
# Commit these changes to the branch workflow is running against
branch: ${{ github.event.inputs.branch }}