Skip to content

init

init #14

Workflow file for this run

name: publish
on:
push:
branches: [main]
jobs:
ts-standard-publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: write
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
registry-url: https://npm.pkg.github.com/
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 9.9.0
run_install: false
- name: 📝 Version
env:
TAG_NAME: ${{ github.event.release.tag_name }}
run: pnpm version ${TAG_NAME} --no-git-tag-version
- name: 🐙 Publish no GitHub
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm publish --no-git-checks
# runs-on: ubuntu-24.04
# permissions:
# contents: read
# packages: write
# steps:
# - uses: actions/checkout@v4
# - uses: ConorMacBride/install-package@v1
# with:
# apt: just
# - uses: pnpm/action-setup@v4
# with:
# version: 9.9.0
# - 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: pnpm pack
# - run: pnpm publish --access restricted --no-git-checks
# 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 }}