Skip to content

Commit

Permalink
publish-now with new name
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeseda committed Jan 29, 2024
1 parent af06b70 commit 21a3127
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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:
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/publish-now.yml
Original file line number Diff line number Diff line change
@@ -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 }}
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@begin/cli",
"name": "@begin/deploy",
"version": "0.19.0",
"bin": {
"begin": "src/index.js"
Expand Down Expand Up @@ -65,9 +65,6 @@
"rules": {
"global-require": "off"
},
"ignorePatterns": [
"scratch/",
"test/tmp/"
]
"ignorePatterns": ["scratch/", "test/tmp/"]
}
}

0 comments on commit 21a3127

Please sign in to comment.