Skip to content

chore: bump package version #18

chore: bump package version

chore: bump package version #18

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
create-release:
name: Build and Create Tagged release
runs-on: ubuntu-latest
steps:
- name: Install archive tools
run: sudo apt install zip
- name: Checkout source code
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.repository.default_branch }}
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: pnpm/action-setup@v2.0.1
with:
version: 8.6.1
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 22.x
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'
- name: Install dependencies
run: pnpm install
- name: Run build
run: pnpm build
env:
CI: false
- name: Update tag ref
uses: EndBug/latest-tag@latest
with:
ref: ${{ github.ref_name }}
- name: Bundle files
run: |
mkdir -p ./temp/sync_reports/dist
cp ./{dist/client.js,dist/server.js} ./temp/sync_reports/dist
cp ./{README.md,LICENSE,fxmanifest.lua,sql/install.sql} ./temp/sync_reports
cd ./temp && zip -r ../sync_reports.zip ./sync_reports
- name: Create Release
uses: 'marvinpinto/action-automatic-releases@v1.2.1'
id: auto_release
with:
repo_token: '${{ secrets.GITHUB_TOKEN }}'
title: '${{ env.RELEASE_VERSION }}'
prerelease: false
files: sync_reports.zip
env:
CI: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}