Skip to content

Update package.json to build a release. #2

Update package.json to build a release.

Update package.json to build a release. #2

Workflow file for this run

name: Releases
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
node-version: [21.x, 20.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm run release
- uses: ncipollo/release-action@v1
with:
artifacts: 'release.tar.gz,foo/*.txt'
bodyFile: 'body.md'