Skip to content

Commit

Permalink
Revert "remove old npm publish script. Add new."
Browse files Browse the repository at this point in the history
  • Loading branch information
jharrell authored Oct 22, 2024
1 parent 7cdb9e8 commit a3040ef
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
push:
branches:
- "main"

name: "Publish"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
- run: npm ci
- run: npm test
- run: npm run build
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_AUTH_TOKEN }}
5 changes: 2 additions & 3 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
bump-version:
name: 'Bump version and publish'
name: 'Bump Version on main'
# Prefix with "MAJOR:" to bump major
# "MINOR:" or "FEAT:" bump minor
# "PRE-ALPHA:", "PRE-BETA:", "PRE-RC:" bump pre-release version
Expand All @@ -25,8 +25,7 @@ jobs:
id: version-bump
uses: 'phips28/gh-action-bump-version@master'
with:
skip-commit: 'true'
skip-tag: 'true'
tag-prefix: 'v'
minor-wording: 'MINOR,FEAT'
major-wording: 'MAJOR,BREAKING'
patch-wording: 'PATCH,FIXES'
Expand Down

0 comments on commit a3040ef

Please sign in to comment.