Skip to content

0.1.1-4

0.1.1-4 #13

Workflow file for this run

name: build
on:
push:
branches:
- main
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
runs-on: macos-14
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: |
npm install -g pnpm
pnpm install
- name: Build
run: pnpm build
- run: ls ./dist
- uses: actions/upload-artifact@v4
with:
name: dist
path: ./dist
release:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: dist
path: ./dist
- run: ls ./dist
- uses: commitizen-tools/commitizen-action@master
with:
changelog_increment_filename: 'body.md'
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
allowUpdates: true
artifacts: 'dist/env-setup-*'
bodyFile: 'body.md'
draft: false
generateReleaseNotes: true
name: ${{ github.ref_name }} Released
prerelease: false
tag: ${{ github.ref_name }}
token: ${{ secrets.GITHUB_TOKEN }}