Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

chore(main): release 1.1.0 (#5) #5

chore(main): release 1.1.0 (#5)

chore(main): release 1.1.0 (#5) #5

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
tags: ['**']
branches: ['main']
paths:
- src/**/*.ts
jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
registry-url: https://npm.pkg.github.com
node-version-file: .nvmrc
- if: github.ref_type == 'branch'
run: npm pkg set "version=${{ format('0.0.0-next-{0}', github.sha) }}"
- run: npm publish --tag ${{ github.ref_type == 'tag' && 'latest' || 'next' }}
env:
NODE_AUTH_TOKEN: ${{ github.token }}