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:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
|
|
@ -24,6 +29,7 @@ jobs:
|
|||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
|
||||
- run: npx changelogithub
|
||||
env:
|
||||
|
|
@ -31,4 +37,6 @@ jobs:
|
|||
|
||||
- run: pnpm install
|
||||
- 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",
|
||||
"version": "0.0.5",
|
||||
"private": true,
|
||||
"description": "Classic Minesweeper browser game",
|
||||
"author": "Ayo",
|
||||
"type": "module",
|
||||
|
|
@ -9,7 +8,7 @@
|
|||
"type": "git",
|
||||
"url": "https://github.com/ayoayco/mnswpr"
|
||||
},
|
||||
"main": "src/index.js",
|
||||
"main": "dist/mnswpr.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Warn: no test specified\"",
|
||||
"dev": "vite",
|
||||
|
|
@ -22,7 +21,8 @@
|
|||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"README.md"
|
||||
"README.md",
|
||||
"LICENSE"
|
||||
],
|
||||
"license": "BSD-2-Clause",
|
||||
"devDependencies": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue