From df332b75ee32d775be1d5ec9e9bd2ad65885bbe0 Mon Sep 17 00:00:00 2001 From: Robin Mehner Date: Mon, 11 Apr 2022 12:27:41 +0200 Subject: [PATCH] Go back to automatic release, but use PAT this time --- .changeset/sharp-flies-sort.md | 5 +++++ .github/workflows/release.yml | 38 ++++++++++++++++++++++++++++++++++ package.json | 3 +-- 3 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 .changeset/sharp-flies-sort.md create mode 100644 .github/workflows/release.yml diff --git a/.changeset/sharp-flies-sort.md b/.changeset/sharp-flies-sort.md new file mode 100644 index 0000000..e1d099b --- /dev/null +++ b/.changeset/sharp-flies-sort.md @@ -0,0 +1,5 @@ +--- +"bits-to-dead-trees": patch +--- + +Go back to automatic release, but use PAT diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..8309278 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,38 @@ +name: Release + +on: + push: + branches: + - main + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + with: + # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits + fetch-depth: 0 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + cache: npm + node-version: lts/* + + - name: Install Dependencies + run: npm install + + - name: Create Release Pull Request or Publish to npm + id: changesets + uses: changesets/action@v1 + with: + publish: npm run release + title: Release new version 🚀 + env: + GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index a248e61..0ede848 100644 --- a/package.json +++ b/package.json @@ -26,8 +26,7 @@ "update-schemas": "npm run dump-schemas && npm run format", "postinstall": "npx playwright install chromium", "add-changeset": "changeset", - "release": "changeset publish", - "version": "changeset version" + "release": "changeset publish" }, "dependencies": { "fastify": "^3.28.0",