Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit bf1ff2d

Browse files
committed
added changeset and create release workflow
1 parent ba3398b commit bf1ff2d

File tree

5 files changed

+1716
-34
lines changed

5 files changed

+1716
-34
lines changed

.changeset/config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@1.4.0/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"linked": [],
6+
"access": "restricted",
7+
"baseBranch": "master",
8+
"updateInternalDependencies": "patch",
9+
"ignore": []
10+
}

.github/workflows/release.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
on:
3+
push:
4+
branches: [master]
5+
6+
jobs:
7+
release:
8+
name: Release
9+
runs-on: ubuntu-latest
10+
steps:
11+
# Checkout Project
12+
- name: 📚 Checkout
13+
uses: actions/checkout@v2
14+
15+
# Setup NodeJS
16+
- name: 🟢 Setup Node ${{ matrix.node_version }}
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: 12
20+
21+
# Install Dependencies
22+
- name: ⏳ Install
23+
run: yarn install
24+
25+
# Create Release Pull Request
26+
- name: 📤 Create Release Pull Request or Publish to NPM
27+
uses: changesets/action@master
28+
with:
29+
publish: yarn release
30+
commit: Version Release
31+
title: Next Release
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

.github/workflows/test-all-packages.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: test-all-packages
1+
name: Test All Packages
22
on:
33
pull_request:
44
branches: ["*"]
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212

13-
# Checkout Project
13+
# Checkout Project
1414
- name: 📚 Checkout
1515
uses: actions/checkout@v2
1616

@@ -24,6 +24,10 @@ jobs:
2424
- name: ⏳ Install
2525
run: yarn install
2626

27-
# Run Tests
27+
# Run Tests
2828
- name: 🤔 Test
29-
run: yarn test
29+
run: yarn test
30+
31+
# Build Packages for Testing
32+
- name: 🔨 Build Packages
33+
run: yarn run build:test

0 commit comments

Comments
 (0)