Skip to content

Commit

Permalink
Update publish workflow and versioning script
Browse files Browse the repository at this point in the history
  • Loading branch information
Anoop K. Chandran committed Dec 10, 2023
1 parent 3ef27a6 commit 77a7fb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Reference Map Publish
on:
push:
branches:
- 'master'
- 'develop'

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

Expand All @@ -23,5 +23,8 @@ jobs:
- name: Create Publish Pull Request
id: changesets
uses: changesets/action@v1
with:
# this expects you to have a npm script called version that runs some logic and then calls `changeset version`.
version: pnpm version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "node esbuild.config.mjs",
"lint": "tsc -noEmit -skipLibCheck",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"version": "node version-bump.mjs && git add package.json && git commit -m \"Bump version\" && git push",
"version": "node version-bump.mjs && changeset version",
"release": "git tag -a $npm_package_version -m \"$npm_package_version\" && git push --tags"
},
"keywords": [],
Expand Down

0 comments on commit 77a7fb7

Please sign in to comment.