Skip to content

0.1.0-beta.2

0.1.0-beta.2 #27

Workflow file for this run

name: Publish on Version Change
on:
push:
branches:
- main
paths:
- 'package.json'
- 'packages/**/package.json'
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org/'
- name: Install dependencies
run: |
corepack enable
corepack prepare pnpm@latest --activate
pnpm install
- name: Build project
run: npx turbo run build
# pnpm will publish all packages in the monorepo
# --provenance for comprehensive metadata about the build process,
# enhancing the security and traceability of artifacts
- name: Publish adaptate to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_USER_TOKEN }}
run: pnpm publish --recursive --provenance --access public
# - name: Publish @adaptate/core to GitHub Packages
# working-directory: packages/core
# env:
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: npm publish --registry=https://npm.pkg.github.com/