From 21a31271825a53096ecd628524c2f7317478bd68 Mon Sep 17 00:00:00 2001 From: Taylor Beseda Date: Mon, 29 Jan 2024 11:58:13 -0700 Subject: [PATCH] publish-now with new name --- .github/workflows/npm-publish.yml | 10 +++++----- .github/workflows/publish-now.yml | 23 +++++++++++++++++++++++ package.json | 7 ++----- 3 files changed, 30 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/publish-now.yml diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index f960df6..53f10d3 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,14 +1,14 @@ name: Publish to NPM -on: [ push, pull_request ] +on: [push, pull_request] jobs: test: runs-on: ${{ matrix.os }} strategy: matrix: - node-version: [ 16, 18, 20 ] - os: [ windows-latest, ubuntu-latest, macOS-latest ] + node-version: [16, 18, 20] + os: [windows-latest, ubuntu-latest, macOS-latest] steps: - uses: actions/checkout@v3 @@ -22,10 +22,10 @@ jobs: - name: test run: npm run test:module - publish: + npm-publish: needs: test if: startsWith(github.ref, 'refs/tags/v') || - github.ref == 'refs/heads/main' + github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: diff --git a/.github/workflows/publish-now.yml b/.github/workflows/publish-now.yml new file mode 100644 index 0000000..a5a695b --- /dev/null +++ b/.github/workflows/publish-now.yml @@ -0,0 +1,23 @@ +name: npm publish + +on: [push, pull_request] + +jobs: + npm-publish: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-node@v3 + with: + node-version: lts/* + registry-url: https://registry.npmjs.org/ + + - run: npm i + + - run: npm run test:module + + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index e9a0752..326d3c6 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@begin/cli", + "name": "@begin/deploy", "version": "0.19.0", "bin": { "begin": "src/index.js" @@ -65,9 +65,6 @@ "rules": { "global-require": "off" }, - "ignorePatterns": [ - "scratch/", - "test/tmp/" - ] + "ignorePatterns": ["scratch/", "test/tmp/"] } }