chore: update gh action release
This commit is contained in:
parent
b36f1d4bc0
commit
d4decdf21f
2 changed files with 12 additions and 4 deletions
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
|
|
@ -11,6 +11,11 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
id-token: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
|
|
@ -24,6 +29,7 @@ jobs:
|
||||||
uses: actions/setup-node@v6
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version-file: .nvmrc
|
node-version-file: .nvmrc
|
||||||
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
||||||
- run: npx changelogithub
|
- run: npx changelogithub
|
||||||
env:
|
env:
|
||||||
|
|
@ -31,4 +37,6 @@ jobs:
|
||||||
|
|
||||||
- run: pnpm install
|
- run: pnpm install
|
||||||
- run: pnpm build
|
- run: pnpm build
|
||||||
- run: npm publish --ignore-scripts
|
- run: npm publish --ignore-scripts --provenance --access public
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@ayo-run/mnswpr",
|
"name": "@ayo-run/mnswpr",
|
||||||
"version": "0.0.5",
|
"version": "0.0.5",
|
||||||
"private": true,
|
|
||||||
"description": "Classic Minesweeper browser game",
|
"description": "Classic Minesweeper browser game",
|
||||||
"author": "Ayo",
|
"author": "Ayo",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|
@ -9,7 +8,7 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/ayoayco/mnswpr"
|
"url": "https://github.com/ayoayco/mnswpr"
|
||||||
},
|
},
|
||||||
"main": "src/index.js",
|
"main": "dist/mnswpr.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Warn: no test specified\"",
|
"test": "echo \"Warn: no test specified\"",
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|
@ -22,7 +21,8 @@
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
"README.md"
|
"README.md",
|
||||||
|
"LICENSE"
|
||||||
],
|
],
|
||||||
"license": "BSD-2-Clause",
|
"license": "BSD-2-Clause",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue