Skip to content

Commit fb46436

Browse files
Add changesets
1 parent 1ce3255 commit fb46436

File tree

5 files changed

+2597
-25
lines changed

5 files changed

+2597
-25
lines changed

.changeset/README.md

+8
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

+11
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": "public",
8+
"baseBranch": "master",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.github/workflows/publish.yml

+26-9
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,47 @@
1-
name: PUBLISH
1+
name: Release
22

33
on:
44
push:
5-
tags:
6-
- 'v*'
5+
branches:
6+
- master
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
79

810
jobs:
9-
publish-npm:
11+
release:
12+
name: Release
1013
runs-on: ubuntu-latest
1114
steps:
1215
- uses: actions/checkout@v3
13-
- uses: actions/setup-node@v2
16+
17+
- uses: actions/setup-node@v3
1418
with:
1519
node-version: 20
1620
registry-url: https://registry.npmjs.org/
1721

18-
- name: Install packages
22+
- name: Install dependencies
1923
run: npm ci
2024

25+
- name: ESLint
26+
run: npm run lint
27+
28+
- name: Lint dependencies
29+
run: npm run lint:deps
30+
31+
- name: Lint types
32+
run: npm run lint:types
33+
2134
- name: Test source
2235
run: npm run test
2336

2437
- name: Build source
2538
run: npm run build
2639

27-
- name: Publish packages to npm registry
28-
run: npm publish --access public
40+
- name: Raise release or publish to npm
41+
id: changesets
42+
uses: changesets/action@v1
43+
with:
44+
publish: npm run release
2945
env:
30-
NODE_AUTH_TOKEN: ${{secrets.REACT_RESOURCE_ROUTER_NPM_TOKEN}}
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
NPM_TOKEN: ${{ secrets.REACT_RESOURCE_ROUTER_NPM_TOKEN }}

0 commit comments

Comments
 (0)