Skip to content

Commit 6359225

Browse files
committed
add changeset
1 parent cdf9094 commit 6359225

File tree

6 files changed

+583
-4
lines changed

6 files changed

+583
-4
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

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

.github/workflows/build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
validate:
10+
if: ${{ github.actor != 'renovate[bot]' }}
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Use Node.js 18.x
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: 18.x
18+
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
19+
env:
20+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
21+
- run: yarn
22+
- run: yarn build
23+
- run: yarn turbo run lint --parallel
24+
- run: yarn test

.github/workflows/release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@v3
17+
18+
- name: Setup Node.js 18.x
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: 18.x
22+
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
23+
env:
24+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
25+
- run: yarn
26+
- run: yarn build
27+
28+
- name: Run Tests
29+
run: yarn test
30+
31+
- name: Create Release Pull Request or Publish to npm
32+
id: changesets
33+
uses: changesets/action@v1
34+
with:
35+
publish: yarn release
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"main": "build/index.js",
55
"license": "MIT",
66
"devDependencies": {
7+
"@changesets/cli": "^2.27.9",
78
"@types/express": "4.17.13",
89
"@types/jsonwebtoken": "8.5.8",
910
"@types/node": "17.0.21",
@@ -21,7 +22,8 @@
2122
"scripts": {
2223
"build": "turbo run build --filter=@ordermentum/asap-core && turbo run build --filter=!@ordermentum/asap-core --parallel",
2324
"lint": "turbo run lint --parallel -- --fix",
24-
"test": "turbo run test"
25+
"test": "turbo run test",
26+
"release": "yarn build && changeset publish"
2527
},
2628
"dependencies": {},
2729
"workspaces": [

0 commit comments

Comments
 (0)