11name : 🦋 Changesets Release
22
3- permissions :
4- contents : write
5-
63on :
74 push :
85 branches :
6057 - name : 🔎 Type check
6158 run : pnpm run typecheck --filter "@trigger.dev/*" --filter "trigger.dev"
6259
63- - name : 🔐 Setup npm auth
64- run : |
65- echo "registry=https://registry.npmjs.org" >> ~/.npmrc
66- echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
67-
6860 # This action has two responsibilities. The first time the workflow runs
6961 # (initial push to the `main` branch) it will create a new branch and
7062 # then open a PR with the related changes for the new version. After the
@@ -76,20 +68,12 @@ jobs:
7668 uses : changesets/action@v1
7769 with :
7870 version : pnpm run changeset:version
79- commit : " chore: Update version for release"
80- title : " chore: Update version for release"
71+ commit : " chore: release packages "
72+ title : " chore: release packages "
8173 publish : pnpm run changeset:release
8274 createGithubReleases : true
8375 env :
8476 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
85- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
86-
87- # - name: 🚀 PR / Publish (mock)
88- # if: ${{ env.ACT }}
89- # id: changesets
90- # run: |
91- # echo "published=true" >> "$GITHUB_OUTPUT"
92- # echo "publishedPackages=[{\"name\": \"@xx/xx\", \"version\": \"1.2.0\"}, {\"name\": \"@xx/xy\", \"version\": \"0.8.9\"}]" >> "$GITHUB_OUTPUT"
9377
9478 - name : 📦 Get package version
9579 if : steps.changesets.outputs.published == 'true'
0 commit comments