Skip to content

Commit

Permalink
ci: add release github action
Browse files Browse the repository at this point in the history
  • Loading branch information
fabien-ml committed Jun 13, 2022
1 parent 2f67184 commit 7976402
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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@v2
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- uses: pnpm/action-setup@v2.0.1
with:
version: 7.0.0-rc.2

- name: Setup Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: pnpm

- name: Install Dependencies
run: pnpm install

- name: Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 7976402

Please sign in to comment.