mirror of
https://github.com/Turfjs/turf.git
synced 2026-02-01 16:57:21 +00:00
* Prep infra for v7 release * Update workflow name * Clarify release process instructions * Move publish commands into workflow and out of package.json * Prerelease version should include merged tags * Update release procedure to reflect the user pushing the release tag * Fix build * Remove errant yml
54 lines
1.1 KiB
YAML
54 lines
1.1 KiB
YAML
name: Publish release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*.*.*"
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
node:
|
|
- 18
|
|
platform:
|
|
- ubuntu-latest
|
|
name: "${{matrix.platform}} / Node.js ${{ matrix.node }}"
|
|
runs-on: ${{matrix.platform}}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: pnpm/action-setup@v2.4.0
|
|
with:
|
|
version: 8
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
registry-url: "https://registry.npmjs.org"
|
|
cache: "pnpm"
|
|
|
|
- run: npm whoami
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
|
|
- run: pnpm install --frozen-lockfile
|
|
|
|
- run: pnpm test
|
|
|
|
- name: run publish
|
|
run: lerna publish from-package --ignore-scripts true --yes
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
|
|
- name: Create Github Release
|
|
uses: softprops/action-gh-release@v2
|