mirror of
https://github.com/Ukendio/jecs.git
synced 2026-03-18 00:44:32 +00:00
workflow_dispatch needs to be its own key
This commit is contained in:
parent
e2bfe80bb8
commit
683c7f28aa
1 changed files with 79 additions and 70 deletions
27
.github/workflows/release.yaml
vendored
27
.github/workflows/release.yaml
vendored
|
|
@ -2,7 +2,9 @@ name: release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags: ["v*", "workflow_dispatch"]
|
tags:
|
||||||
|
- "v*"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
|
|
@ -33,7 +35,7 @@ jobs:
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Release
|
name: Release
|
||||||
needs: [build]
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
@ -41,7 +43,7 @@ jobs:
|
||||||
- name: Checkout Project
|
- name: Checkout Project
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Download Jecs Build
|
- name: Download Build
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build
|
name: build
|
||||||
|
|
@ -54,12 +56,12 @@ jobs:
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
name: Jecs ${{ github.ref_name }}
|
name: Jecs ${{ github.ref_name }}
|
||||||
files: |
|
tag_name: ${{ github.ref_name }}
|
||||||
jecs.rbxm
|
files: jecs.rbxm
|
||||||
|
|
||||||
publish-wally:
|
publish-wally:
|
||||||
name: Publish to Wally
|
name: Publish to Wally
|
||||||
needs: [release]
|
needs: release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Project
|
- name: Checkout Project
|
||||||
|
|
@ -76,8 +78,10 @@ jobs:
|
||||||
|
|
||||||
publish-npm:
|
publish-npm:
|
||||||
name: Publish to NPM
|
name: Publish to NPM
|
||||||
needs: [release]
|
needs: release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Project
|
- name: Checkout Project
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -88,5 +92,10 @@ jobs:
|
||||||
node-version: "24"
|
node-version: "24"
|
||||||
registry-url: "https://registry.npmjs.org"
|
registry-url: "https://registry.npmjs.org"
|
||||||
|
|
||||||
- run: npm install
|
- name: Install
|
||||||
- run: npm publish
|
run: npm install
|
||||||
|
|
||||||
|
- name: Publish
|
||||||
|
run: npm publish
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue