Skip to content

Bump path-to-regexp from 1.8.0 to 1.9.0 (#3326) #12

Bump path-to-regexp from 1.8.0 to 1.9.0 (#3326)

Bump path-to-regexp from 1.8.0 to 1.9.0 (#3326) #12

Workflow file for this run

name: Create a release on tag
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
env:
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
cache: 'npm'
- name: Install Node dependencies
run: npm ci
- name: Build the package
run: |
npm run build:kinto-single
cd build
tar -cvf "$RUNNER_TEMP/kinto-admin-release.tar" *
- name: Create release if one doesn't exist yet
run: |
EXISTING_RELEASE=$(gh release view $GITHUB_REF_NAME --json="id" || echo '')
if [[ -z $EXISTING_RELEASE ]]; then
gh release create $GITHUB_REF_NAME --generate-notes -d
fi
- name: Upload built package to release
run: |
gh release upload $GITHUB_REF_NAME "$RUNNER_TEMP/kinto-admin-release.tar" --clobber