Skip to content

Commit f7b9cc9

Browse files
committed
chore: add changesets
1 parent d3b04b2 commit f7b9cc9

File tree

5 files changed

+850
-24
lines changed

5 files changed

+850
-24
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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/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/main.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
- main
1212

1313
jobs:
14-
test:
14+
test-and-release:
1515
runs-on: ubuntu-latest
1616

1717
steps:
@@ -26,3 +26,16 @@ jobs:
2626

2727
- name: Run Tests
2828
run: yarn test
29+
30+
- name: Create Release Pull Request or Publish to npm
31+
# Prevents changesets action from creating a PR on forks
32+
if: github.repository == 'open-wc/custom-elements-manifest'
33+
id: changesets
34+
uses: changesets/action@master
35+
with:
36+
publish: yarn release
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
40+
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
41+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@
1212
},
1313
"scripts": {
1414
"docs": "rocket build",
15+
"release": "changeset publish",
1516
"start": "rocket start",
1617
"test": "yarn workspaces run test"
1718
},
1819
"dependencies": {},
1920
"devDependencies": {
21+
"@changesets/cli": "^2.16.0",
2022
"@rocket/blog": "^0.3.0",
2123
"@rocket/cli": "^0.9.6",
2224
"@rocket/launch": "^0.5.3",

0 commit comments

Comments
 (0)