mirror of
https://github.com/Ukendio/jecs.git
synced 2026-03-18 00:44:32 +00:00
Add Trusted Publishing (#307)
This commit is contained in:
parent
6552a5d2d1
commit
29c93e5b0c
2 changed files with 23 additions and 19 deletions
17
.github/workflows/publish-npm.yml
vendored
17
.github/workflows/publish-npm.yml
vendored
|
|
@ -1,17 +0,0 @@
|
||||||
name: publish-npm
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
publish:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-node@v3
|
|
||||||
with:
|
|
||||||
node-version: "20"
|
|
||||||
- uses: JS-DevTools/npm-publish@v3
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.NPM_AUTH_TOKEN }}
|
|
||||||
25
.github/workflows/release.yaml
vendored
25
.github/workflows/release.yaml
vendored
|
|
@ -4,6 +4,10 @@ on:
|
||||||
push:
|
push:
|
||||||
tags: ["v*", "workflow_dispatch"]
|
tags: ["v*", "workflow_dispatch"]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build
|
name: Build
|
||||||
|
|
@ -53,8 +57,8 @@ jobs:
|
||||||
files: |
|
files: |
|
||||||
jecs.rbxm
|
jecs.rbxm
|
||||||
|
|
||||||
publish:
|
publish-wally:
|
||||||
name: Publish
|
name: Publish to Wally
|
||||||
needs: [release]
|
needs: [release]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -69,3 +73,20 @@ jobs:
|
||||||
|
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: wally publish
|
run: wally publish
|
||||||
|
|
||||||
|
publish-npm:
|
||||||
|
name: Publish to NPM
|
||||||
|
needs: [release]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Project
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: "24"
|
||||||
|
registry-url: "https://registry.npmjs.org"
|
||||||
|
|
||||||
|
- run: npm install
|
||||||
|
- run: npm publish
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue