-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.13 KB
/
prerelease.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
name: "Prerelease"
on:
push:
branches:
- main
paths-ignore:
- '.github/workflows/**'
concurrency:
group: publish
cancel-in-progress: false
jobs:
Bump-Prerelease-Publish:
name: Bump-Prerelease-Publish
if: "!startsWith(github.event.head_commit.message, '[SKIP CI]') && !startsWith(github.event.head_commit.message, '[release]') && github.repository == 'subquery/query-subgraph'"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 100
token: ${{ secrets.REPO_TOKEN }}
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
- run: yarn
- name: build
run: yarn build
#Add remove-stable-version
- name: Bump query-subgraph & deploy
uses: ./.github/actions/create-prerelease
with:
package-path: .
npm-token: ${{ secrets.NPM_TOKEN }}
- name: Commit changes
uses: EndBug/add-and-commit@v5
with:
message: '[SKIP CI] Prerelease'
env:
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}