Skip to content

Merge pull request #5 from Lawndlwd/dev #1

Merge pull request #5 from Lawndlwd/dev

Merge pull request #5 from Lawndlwd/dev #1

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: pnpm/[email protected]
with:
version: 9.1.1
- name: Use Node.js
uses: actions/[email protected]
with:
node-version: 20.x
cache: 'pnpm'
- run: pnpm install
- run: pnpm run build
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}