Skip to content

init

init #5

Workflow file for this run

name: publish
on:
push:
branches: [main]
jobs:
ts-standard-publish:
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.9.0
- run: pnpm install
- run: pnpm pack
- uses: actions/github-script@v7
with:
script: |
github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: 'latest',
target_commitish: context.sha,
release: {
name: 'ts-standard',
body: 'Automated release of ts-standard',
draft: false,
prerelease: true
}
})
- run: pnpm publish --registry https://npm.pkg.github.com --access restricted
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - uses: ConorMacBride/install-package@v1
# with:
# apt: just
# - uses: actions/setup-node@v4
# with:
# node-version: 22.7.0
# registry-url: https://npm.pkg.github.com
# cache: pnpm
# - run: just ts-standard-install
# - run: just ts-standard-build
# - uses: simenandre/publish-with-pnpm@v2
# with:
# npm-auth-token: ${{ secrets.GITHUB_TOKEN }}