Skip to content

Commit

Permalink
Add changesets publication workflow
Browse files Browse the repository at this point in the history
That dependency graph is absurd. I've at least significantly tamped it
down using nolyfill.
  • Loading branch information
isker committed Oct 21, 2023
1 parent 23576c2 commit c5a2362
Show file tree
Hide file tree
Showing 4 changed files with 2,232 additions and 248 deletions.
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
21 changes: 20 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- run: npm run lint
- run: npm run test
- run: npm run build
deploy:
deploy-demo:
# Only run on master commits; this is a further restriction of the top-level `on`.
if: github.event_name == 'push'
needs: build-lint-test
Expand All @@ -30,3 +30,22 @@ jobs:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only --config demo/fly.${{ matrix.service }}.toml --ignorefile demo/Dockerfile.${{ matrix.service }}.dockerignore
release:
# Only run on master commits; this is a further restriction of the top-level `on`.
if: github.event_name == 'push'
needs: build-lint-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x
- run: npm install
- uses: changesets/action@v1
with:
commit: Version neogrok
title: Version neogrok
publish: npx changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit c5a2362

Please sign in to comment.