Skip to content

Version Packages (#218) #214

Version Packages (#218)

Version Packages (#218) #214

Workflow file for this run

name: Release
on:
push:
branches:
- master
jobs:
release:
name: Publish & Deploy
runs-on: ubuntu-latest
env:
CI: true
steps:
- name: Checkout Repo
uses: actions/checkout@main
with:
# This makes Actions fetch all Git history for semantic-release
fetch-depth: 0
token: ${{ secrets.SEEK_OSS_CI_GITHUB_TOKEN }}
- name: Set up pnpm
uses: pnpm/action-setup@v3
- name: Setup Node.js
uses: actions/setup-node@main
with:
node-version-file: 'package.json'
cache: 'pnpm'
- name: Install Dependencies
run: pnpm i
- name: Deploy site & create release PR or publish to npm
uses: changesets/action@v1
with:
version: pnpm run version
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.SEEK_OSS_CI_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
IS_GITHUB_PAGES: true