Skip to content

Fix condition in canary E2E (#1259) #791

Fix condition in canary E2E (#1259)

Fix condition in canary E2E (#1259) #791

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- 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
# This makes the PR pushed to use GITHUB_TOKEN and trigger the checks
persist-credentials: false
- name: Configure
run: |
git config user.email "[email protected]"
git config user.name "Xata"
echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
id: config
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8.6.5
- name: Use Node.js ${{ steps.config.outputs.NVMRC }}
uses: actions/setup-node@v3
with:
node-version: ${{ steps.config.outputs.NVMRC }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Create Release Pull Request or Publish to npm
uses: changesets/action@v1
with:
title: Release tracking
publish: npx changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}