Skip to content

fix: copy package.json file instead of symlinking #287

fix: copy package.json file instead of symlinking

fix: copy package.json file instead of symlinking #287

Workflow file for this run

name: Release
on:
push:
branches:
- main
- next
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
release:
runs-on: ubuntu-latest
permissions:
# See provenance docs: https://docs.npmjs.com/generating-provenance-statements#publishing-packages-with-provenance-via-github-actions
id-token: write
packages: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.RELEASE_GH_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies and build TS
run: npm ci && npm run build
- name: Install semantic-release and friends
run: npm i --no-save semantic-release@24 @semantic-release/changelog@6 @semantic-release/exec@6 @semantic-release/git@10
- name: Run semantic-release workflow
env:
GH_TOKEN: ${{ secrets.RELEASE_GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# See provenance docs: https://docs.npmjs.com/generating-provenance-statements#publishing-packages-with-provenance-via-github-actions
NPM_CONFIG_PROVENANCE: 'true'
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
- name: Sync changes back to next
if: ${{ github.ref }} == 'refs/heads/main'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.RELEASE_GH_TOKEN }}
branch: next
# quick assertion to validate that rdme CLI can be installed and run on ubuntu
- name: Install `rdme` from npm
if: ${{ github.ref }} == 'refs/heads/next'
run: npm install -g rdme@next
- name: Print rdme CLI version
if: ${{ github.ref }} == 'refs/heads/next'
run: rdme --version
timeout-minutes: 1