Skip to content

feat: Independent learna versioning (#225) #36

feat: Independent learna versioning (#225)

feat: Independent learna versioning (#225) #36

Workflow file for this run

name: Create Release
on: workflow_dispatch
jobs:
create-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:

Check failure on line 12 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 12
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: "0" # fetch all history for all tags and branches so that changeset-builder can generate changelogs
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
scope: "@differentialhq"
- name: Install dependencies on root
run: npm install
- name: Set DIFFERENTIAL_API_SECRET
run: echo "DIFFERENTIAL_API_SECRET=$(curl https://api.differential.dev/demo/token)" >> $GITHUB_ENV
- name: Run tests
run: npx lerna run test
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
JWKS_URL: ${{ secrets.JWKS_URL }}
PREDICTOR_API_URL: ${{ secrets.PREDICTOR_API_URL }}
- name: Build packages
run: npx lerna run build
- name: Configure Git User
run: |
git config --global user.name "Differential CI"
git config --global user.email "ci@differential.dev"
- name: Version packages
run: npx lerna version --conventional-commits --yes --no-private --no-push
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Version packages
# run: npx lerna version --conventional-commits --yes --no-private --create-release github
# env:
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Publish packages
# run: npx lerna publish from-package --yes --no-private --registry https://registry.npmjs.org
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}