Add CI to publish to NPM and bump to 1.1

This commit is contained in:
William Oldham 2024-12-30 15:50:59 +00:00
commit 3abcf166e8
3 changed files with 34 additions and 5 deletions

View file

@ -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
View 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 }}

View file

@ -1,5 +1,10 @@
{
"name": "@pretendonetwork/error-codes",
"version": "1.0.3",
"description": "Translated error code information for the Wii U and 3DS"
"version": "1.1.0",
"description": "Translated error code information for the Wii U and 3DS",
"main": "index.js",
"files": [
"index.js",
"data"
]
}