Skip to content

Commit e74c4a1

Browse files
authored
use shared pipelines (#1132)
1 parent acef0b3 commit e74c4a1

File tree

6 files changed

+38
-136
lines changed

6 files changed

+38
-136
lines changed

.github/workflows/canary.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/dependencies-changesets.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/github.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/pr.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: pr
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
7+
jobs:
8+
dependencies:
9+
uses: the-guild-org/shared-config/.github/workflows/changesets-dependencies.yaml@main
10+
secrets:
11+
githubToken: ${{ secrets.GITHUB_TOKEN }}
12+
13+
release:
14+
uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@main
15+
with:
16+
npmTag: alpha
17+
buildScript: build
18+
nodeVersion: 18
19+
secrets:
20+
githubToken: ${{ secrets.GITHUB_TOKEN }}
21+
npmToken: ${{ secrets.NPM_TOKEN }}

.github/workflows/release.yml

Lines changed: 11 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,15 @@
1-
name: Release
1+
name: release
22
on:
33
push:
4-
branches: [master]
4+
branches:
5+
- master
56

67
jobs:
7-
build:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- name: Checkout
11-
uses: actions/checkout@v3
12-
with:
13-
fetch-depth: 0
14-
15-
- name: Use Node
16-
uses: actions/setup-node@v3
17-
with:
18-
node-version: 18
19-
20-
- name: Cache Yarn
21-
uses: actions/cache@v3
22-
with:
23-
path: '**/node_modules'
24-
key: ${{runner.os}}-18-18-node-modules-${{hashFiles('yarn.lock')}}
25-
restore-keys: |
26-
${{runner.os}}-18-18-node-modules-
27-
28-
- name: Install Dependencies
29-
run: yarn
30-
31-
- name: set version variables
32-
id: vars
33-
shell: bash
34-
run: |
35-
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
36-
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
37-
38-
- name: Create Release Pull Request or Publish to npm
39-
id: changesets
40-
uses: dotansimha/[email protected]
41-
with:
42-
publish: 'yarn release'
43-
commit: 'chore(release): update monorepo packages versions'
44-
title: 'Upcoming Release Changes'
45-
createGithubReleases: aggregate
46-
githubReleaseName: "Release ${{ steps.vars.outputs.sha_short }} (from ${{ steps.vars.outputs.branch }})"
47-
env:
48-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
8+
stable:
9+
uses: the-guild-org/shared-config/.github/workflows/release-stable.yml@main
10+
with:
11+
releaseScript: release
12+
nodeVersion: 18
13+
secrets:
14+
githubToken: ${{ secrets.GITHUB_TOKEN }}
15+
npmToken: ${{ secrets.NPM_TOKEN }}

.github/workflows/tests.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Tests
1+
name: test
22

33
on:
44
push:
@@ -8,7 +8,6 @@ on:
88

99
jobs:
1010
lint:
11-
name: Lint
1211
runs-on: ubuntu-latest
1312
steps:
1413
- name: Checkout Master
@@ -19,7 +18,7 @@ jobs:
1918
- name: Use Node
2019
uses: actions/setup-node@v3
2120
with:
22-
node-version: 16
21+
node-version: 18
2322

2423
- name: Cache Yarn
2524
uses: actions/cache@v3
@@ -36,7 +35,7 @@ jobs:
3635
run: yarn lint
3736

3837
typecheck:
39-
name: TypeScript Type Checking
38+
name: typecheck / graphql v${{matrix.graphql_version}}
4039
runs-on: ubuntu-latest
4140
strategy:
4241
matrix:
@@ -51,7 +50,7 @@ jobs:
5150
- name: Use Node
5251
uses: actions/setup-node@v3
5352
with:
54-
node-version: 16
53+
node-version: 18
5554

5655
- name: Cache Yarn
5756
uses: actions/cache@v3
@@ -77,13 +76,13 @@ jobs:
7776
path: packages/plugin/dist
7877

7978
test:
80-
name: Testing on Node ${{matrix.node_version}} with GraphQL v${{matrix.graphql_version}} and ESLint v8
79+
name: jest / node v${{matrix.node_version}} / graphql v${{matrix.graphql_version}} / eslint v8
8180
timeout-minutes: 60
8281
runs-on: ubuntu-latest
8382
needs: [typecheck]
8483
strategy:
8584
matrix:
86-
node_version: [12, 16]
85+
node_version: [12, 16, 18]
8786
graphql_version: [15, 16]
8887

8988
steps:

0 commit comments

Comments
 (0)