From 3abcf166e8d3eaf9364306b29f9f22d40fc4992d Mon Sep 17 00:00:00 2001 From: William Oldham Date: Mon, 30 Dec 2024 15:50:59 +0000 Subject: [PATCH] Add CI to publish to NPM and bump to 1.1 --- .editorconfig | 6 +++++- .github/workflows/publish.yml | 20 ++++++++++++++++++++ package.json | 13 +++++++++---- 3 files changed, 34 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.editorconfig b/.editorconfig index e2692020..563a36b6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -2,4 +2,8 @@ indent_style = tab indent_size = 2 end_of_line = lf -insert_final_newline = false \ No newline at end of file +insert_final_newline = false + +[*.yml] +indent_style = space +indent_size = 2 \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..d14dc74d --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 }} diff --git a/package.json b/package.json index 7d58143a..0c3097a2 100644 --- a/package.json +++ b/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" + ] +} \ No newline at end of file