Skip to content

Commit

Permalink
add release action (#657)
Browse files Browse the repository at this point in the history
* add release action

* uncomment publish

* test on this branch

* try feeding in custom command

* set branch back to main, update title
  • Loading branch information
Sladuca authored Nov 28, 2023
1 parent ccf1e59 commit a20234e
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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

- name: install node
uses: actions/setup-node@v3
with:
node-version: "v18.12.1"
cache: "yarn"
cache-dependency-path: ./yarn.lock

- name: corepack enable
run: corepack enable

- name: yarn install
run: yarn install --immutable

- name: update release PR or publish
id: changesets
uses: changesets/action@v1
with:
version: yarn changeset version
publish: echo "rip bozo"
title: version packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit a20234e

Please sign in to comment.