From 280fbae253192ed28cd3575859c50375955b159a Mon Sep 17 00:00:00 2001 From: Newton <5769156+iamnewton@users.noreply.github.com> Date: Mon, 28 Oct 2024 13:56:54 -0700 Subject: [PATCH] chore: create a release Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com> --- .changeset/nice-knives-train.md | 14 ++++++++++++++ .github/workflows/publish.yml | 23 +++++++++++++++++++---- 2 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 .changeset/nice-knives-train.md diff --git a/.changeset/nice-knives-train.md b/.changeset/nice-knives-train.md new file mode 100644 index 0000000..66eb596 --- /dev/null +++ b/.changeset/nice-knives-train.md @@ -0,0 +1,14 @@ +--- +"@theholocron/browserslist-config": patch +"@theholocron/bundlewatch-config": patch +"@theholocron/commitlint-config": patch +"@theholocron/eslint-config": patch +"@theholocron/jest-config": patch +"@theholocron/lint-staged-config": patch +"@theholocron/prettier-config": patch +"@theholocron/storybook-config": patch +"@theholocron/stylelint-config": patch +"@theholocron/tsconfig": patch +--- + +Bring parity to the configs repo diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c88f4be..ca4a855 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,6 +5,8 @@ on: # yamllint disable-line rule:truthy branches: - main +concurrency: ${{ github.workflow }}-${{ github.ref }} + permissions: contents: write packages: write @@ -41,10 +43,16 @@ jobs: - run: npm ci name: Install dependencies - - run: npm publish + - uses: changesets/action@v1 name: Publish to NPM + with: + title: "chore(release): 🦋 version packages" + commit: "chore(release): 🦋 version packages" + version: npx changeset version + publish: npx changeset publish env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} publish-gh: name: Publish to GitHub @@ -65,7 +73,14 @@ jobs: - run: npm ci name: Install dependencies - - run: npm publish --access public - name: Publish to GitHub Packages + - uses: changesets/action@v1 + name: Publish to NPM + with: + title: "chore(release): 🦋 version packages" + commit: "chore(release): 🦋 version packages" + version: npx changeset version + publish: npx changeset publish env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}