diff --git a/.github/workflows/node-test-pull.yaml b/.github/workflows/node-test-pull.yaml index 656fefb..da576a9 100644 --- a/.github/workflows/node-test-pull.yaml +++ b/.github/workflows/node-test-pull.yaml @@ -11,7 +11,7 @@ jobs: strategy: matrix: - node-version: [14.x, '${{ vars.NODE_VERSION }}' ] + node-version: [20.x, '${{ vars.NODE_VERSION }}' ] steps: - uses: actions/checkout@v5 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..b26ec8a --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,26 @@ +name: NPM Publish + +on: + release: + types: [created] + workflow_dispatch: + +env: + NODE_VERSION: 20 + NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + registry-url: https://registry.npmjs.org/ + - name: Install Dependencies + run: | + npm ci + - run: | + npm run test + - run: npm publish --access public diff --git a/.npmignore b/.npmignore index 557b973..b3895a8 100644 --- a/.npmignore +++ b/.npmignore @@ -1,6 +1,5 @@ build/ spec/ -src/ *.coffee .travis.yml .npmignore diff --git a/package-lock.json b/package-lock.json index 30985c9..90b1c24 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ls-archive", - "version": "1.3.4", + "version": "2.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ls-archive", - "version": "1.3.4", + "version": "2.0.0", "dependencies": { "async": "^3.2.6", "colors": "^1.4.0", diff --git a/package.json b/package.json index b468315..20d43d7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "ls-archive", + "name": "@pulsar-edit/ls-archive", "description": "A package for listing and reading files in archive files", - "version": "1.3.4", + "version": "2.0.0", "licenses": "MIT", "keywords": [ "ls",