Skip to content

Commit 140f3da

Browse files
committed
updated to lastest shared pipelines
1 parent 24dc6fa commit 140f3da

File tree

5 files changed

+32
-95
lines changed

5 files changed

+32
-95
lines changed

.github/workflows/canary.yml

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

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: Tests
1+
name: test
22
on:
33
pull_request:
44
branches:
55
- main
66

77
jobs:
8-
test-node:
9-
name: Testing on Node ${{ matrix.node-version }}
8+
node:
9+
name: v${{ matrix.node-version }}
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:

.github/workflows/dependencies-changesets.yml

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

.github/workflows/pr.yml

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+
- main
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: 8 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,15 @@
11
name: release
2-
32
on:
43
push:
54
branches:
65
- main
76

87
jobs:
9-
release:
10-
name: stable
11-
runs-on: ubuntu-latest
12-
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v3
15-
with:
16-
fetch-depth: 0
17-
18-
- name: Use Node
19-
uses: actions/setup-node@v3
20-
with:
21-
node-version: 18
22-
cache: 'yarn'
23-
24-
- name: Install Dependencies using Yarn
25-
run: yarn
26-
27-
- name: Build Packages
28-
run: yarn build
29-
30-
- name: set version variables
31-
id: vars
32-
shell: bash
33-
run: |
34-
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
35-
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
36-
37-
- name: Create Release Pull Request or Publish to npm
38-
id: changesets
39-
uses: dotansimha/[email protected]
40-
with:
41-
publish: yarn release
42-
commit: 'chore(release): update monorepo packages versions'
43-
title: 'Upcoming Release Changes'
44-
createGithubReleases: aggregate
45-
githubReleaseName: 'Release ${{ steps.vars.outputs.sha_short }} (from ${{ steps.vars.outputs.branch }})'
46-
env:
47-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48-
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 }}

0 commit comments

Comments
 (0)