Skip to content

Commit

Permalink
chore: add changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers committed Jul 28, 2021
1 parent d3b04b2 commit f7b9cc9
Show file tree
Hide file tree
Showing 5 changed files with 850 additions and 24 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
10 changes: 10 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://unpkg.com/@changesets/config@1.6.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"linked": [],
"access": "restricted",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
15 changes: 14 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- main

jobs:
test:
test-and-release:
runs-on: ubuntu-latest

steps:
Expand All @@ -26,3 +26,16 @@ jobs:

- name: Run Tests
run: yarn test

- name: Create Release Pull Request or Publish to npm
# Prevents changesets action from creating a PR on forks
if: github.repository == 'open-wc/custom-elements-manifest'
id: changesets
uses: changesets/action@master
with:
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
},
"scripts": {
"docs": "rocket build",
"release": "changeset publish",
"start": "rocket start",
"test": "yarn workspaces run test"
},
"dependencies": {},
"devDependencies": {
"@changesets/cli": "^2.16.0",
"@rocket/blog": "^0.3.0",
"@rocket/cli": "^0.9.6",
"@rocket/launch": "^0.5.3",
Expand Down
Loading

0 comments on commit f7b9cc9

Please sign in to comment.