Skip to content

docs: recommend install-and-run command, improve postinstall visibili… #18

docs: recommend install-and-run command, improve postinstall visibili…

docs: recommend install-and-run command, improve postinstall visibili… #18

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
packages: write
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
version: bun run ci:version
publish: bun run ci:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to GitHub Packages
if: steps.changesets.outputs.published == 'true'
run: |
jq '.name = "@talentprotocol/talent-agent"' package.json > package.tmp && mv package.tmp package.json
echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" > .npmrc
echo "@talentprotocol:registry=https://npm.pkg.github.com" >> .npmrc
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}