Add CI to publish to NPM and bump to 1.1
This commit is contained in:
parent
cb35b5bb93
commit
3abcf166e8
3 changed files with 34 additions and 5 deletions
|
|
@ -3,3 +3,7 @@ indent_style = tab
|
|||
indent_size = 2
|
||||
end_of_line = lf
|
||||
insert_final_newline = false
|
||||
|
||||
[*.yml]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
20
.github/workflows/publish.yml
vendored
Normal file
20
.github/workflows/publish.yml
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
name: Publish to NPM
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
- name: Publishing
|
||||
run: npm publish --access public
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
11
package.json
11
package.json
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"name": "@pretendonetwork/error-codes",
|
||||
"version": "1.0.3",
|
||||
"description": "Translated error code information for the Wii U and 3DS"
|
||||
"name": "@pretendonetwork/error-codes",
|
||||
"version": "1.1.0",
|
||||
"description": "Translated error code information for the Wii U and 3DS",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
"index.js",
|
||||
"data"
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue