Skip to content

Bump versions in ci.yml #41

Bump versions in ci.yml

Bump versions in ci.yml #41

Workflow file for this run

name: Build, Test and Release
on:
pull_request:
types: [opened, synchronize]
push:
branches:
- main
jobs:
build:
timeout-minutes: 2
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 8.14.1
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"
- name: Install
run: pnpm install
- name: Build
run: pnpm build
- name: Lint and Typecheck
run: pnpm check
env:
CI: true
- name: Publish to NPM
if: ${{ github.ref == 'refs/heads/main' }}
id: publish
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
check-version: true
- if: steps.publish.outputs.type != 'none'
run: |
echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"