Skip to content

Commit

Permalink
Add github action for release
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubno committed Feb 16, 2024
1 parent 47fe595 commit 95f514a
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/js-rc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: JS SDK Release Candidate

on:
pull_request:
types: [ labeled ]

jobs:
build:
if: ${{ github.event.label.name == 'rc' }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/js-sdk

steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2

- name: Setup Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm

- name: Configure pnpm
run: |
pnpm config set auto-install-peers true
pnpm config set exclude-links-from-lockfile true
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Release Candidate
run: |
npm version prerelease --preid=${{ github.ref_name ||
npm publish --tag rc --dry-run
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 95f514a

Please sign in to comment.