Skip to content

Commit

Permalink
Add CI publishing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
carbonrobot committed Sep 21, 2023
1 parent f1c5307 commit 1b08520
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .changeset/good-seas-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@envyjs/apollo': minor
'@envyjs/client': minor
'@envyjs/core': minor
'@envyjs/nextjs': minor
'@envyjs/node': minor
'@envyjs/web': minor
'@envyjs/webui': minor
---

Initial Release
15 changes: 13 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
lint:
runs-on: ubuntu-latest
Expand All @@ -22,6 +24,15 @@ jobs:
publish:
runs-on: ubuntu-latest
needs: [lint, test]
permissions:
contents: write
id-token: write
issues: write
repository-projects: write
deployments: write
packages: write
pull-requests: write

steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
Expand All @@ -30,7 +41,7 @@ jobs:
- uses: changesets/action@v1
with:
version: yarn run changeset version
#publish: yarn run changeset publish
publish: yarn run changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 1b08520

Please sign in to comment.