Skip to content

maybe fixed bug

maybe fixed bug #8

name: Build and Release
on:
push:
branches:
- main
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies and build
run: |
npm ci
npm run build
- name: get-npm-version
id: package-version
uses: martinbeentjes/[email protected]
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
omitBody: true
tag: ${{ steps.package-version.outputs.current-version}}
name: v${{ steps.package-version.outputs.current-version}}
allowUpdates: true
makeLatest: true