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 04c834f
Show file tree
Hide file tree
Showing 4 changed files with 2,238 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/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
27 changes: 26 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,28 @@ 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
permissions:
contents: write # to create releases
pull-requests: write # to create pull requests
steps:
- uses: actions/checkout@v3
with:
# Changesets needs full history to create proper changelogs.
fetch-depth: 0
- 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 04c834f

Please sign in to comment.