Skip to content

🔧 Include package.json in tarball #6

🔧 Include package.json in tarball

🔧 Include package.json in tarball #6

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Build package
run: npm run build
- name: Gather assets
id: assets
run: |
LIB_FILES="lib/**/*.* package.json"
echo "::set-output name=lib_files::$LIB_FILES"
- name: Create release tarball
id: create_tarball
run: |
tar -czvf ${{ github.ref_name }}.tgz ${{ steps.assets.outputs.lib_files }}
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
${{ github.ref_name }}.tgz