Skip to content

Experimental stateless JavaScript SDK #5

Experimental stateless JavaScript SDK

Experimental stateless JavaScript SDK #5

Workflow file for this run

name: JS SDK Release Candidate
on:
pull_request:
jobs:
build:
if: ${{ contains( github.event.pull_request.labels.*.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.head_ref }}
npm publish --tag rc --dry-run
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Commit new versions
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git commit -am "[skip ci] Release new versions" || exit 0
git push -u origin ${{ github.head_ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}