-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
GitHub Actions YAML generator [bot]
committed
Nov 16, 2023
1 parent
6927312
commit 6214ef9
Showing
1 changed file
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,11 +5,35 @@ on: | |
workflow_dispatch: | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Test running on ${{github.repository}} | ||
run: echo Commit ${{github.sha}} seems to be working | ||
- name: Test running on ${{github.repository}} | ||
run: echo Commit ${{github.sha}} from a merge key seems to be working | ||
- name: Test running on ${{github.repository}} | ||
run: echo Commit ${{github.sha}} from an anchor seems to be working | ||
release: | ||
concurrency: | ||
group: release-${{ github.event.number || github.ref }} | ||
permissions: | ||
contents: write | ||
packages: write | ||
needs: | ||
- test | ||
runs-on: ubuntu-22.04 | ||
if: >- | ||
!github.event.repository.fork && ( | ||
github.event_name != 'pull_request' | ||
|| github.event.pull_request.head.repo.full_name == github.repository | ||
) | ||
steps: | ||
- name: Install Node | ||
uses: actions/[email protected] | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Semantic Release | ||
run: npx semantic-release |