Skip to content

Commit

Permalink
Go back to automatic release, but use PAT this time
Browse files Browse the repository at this point in the history
  • Loading branch information
rmehner committed Apr 11, 2022
1 parent 03930a4 commit df332b7
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/sharp-flies-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"bits-to-dead-trees": patch
---

Go back to automatic release, but use PAT
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 }}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit df332b7

Please sign in to comment.