Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,19 @@ on:
- main
paths:
- "package.json"
permissions:
contents: read

# Queue runs instead of running them side by side, so a push and a manual
# run right after it can't both release the same version.
concurrency:
group: create-release
cancel-in-progress: false

jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -31,13 +42,20 @@ jobs:
- name: Generate new release version
id: newversion
run: python tools/release.py -l "${{ steps.changes.outputs.last-tag }}"
# NEW_VERSION stays empty when package.json does not hold the next
# version (any other change to package.json on main).
- name: Stop when there is no new version
if: env.NEW_VERSION == ''
run: echo "package.json does not hold a new version, nothing to release."
- name: GitHub Release
if: env.NEW_VERSION != ''
uses: softprops/action-gh-release@v3
with:
tag_name: "${{ env.NEW_VERSION }}"
make_latest: "true"
generate_release_notes: true
- name: NPM Release (version specific)
if: env.NEW_VERSION != ''
uses: JS-DevTools/npm-publish@v4
with:
token: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches:
- main
permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/manual-start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
type: string
env:
TEST_TAG: webperfse/webperf-core:test
permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/prep-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ on:
- main
paths:
- "index.js"
permissions:
contents: read

jobs:
build:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
Loading