Skip to content

Merge pull request #1018 from international-labour-organization/chang… #197

Merge pull request #1018 from international-labour-organization/chang…

Merge pull request #1018 from international-labour-organization/chang… #197

Workflow file for this run

name: Release
on:
push:
branches:
- main
env:
CI: true
PNPM_CACHE_FOLDER: .pnpm-store
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout code repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js 16.14.0
uses: actions/setup-node@v3
with:
node-version: 16.14.0
- name: Install pnpm
uses: pnpm/action-setup@v2.0.1
with:
version: 8.6.0
- name: Add auth token to .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build:libs
- name: Create and publish versions
id: changesets
uses: changesets/action@v1
with:
version: pnpm ci:version
commit: "chore: update versions"
title: "chore: update versions"
publish: pnpm ci:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}