Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.1.4 trying out new npm-publish@v2 based npm publishing automation script #6

Merged
merged 2 commits into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 29 additions & 11 deletions .github/workflows/publish_npm_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,39 @@ jobs:
publish:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
node-version: "18"
- id: publish
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v2
with:
access: "public"
tag: ${{ steps.publish.outputs.version }}
token: ${{ secrets.NPM_GITHUB_OBEWDS_AUTOMATION_AUTH_TOKEN }}
access: "public"
tag: ${{ steps.publish.outputs.version }}
token: ${{ secrets.NPM_GITHUB_OBEWDS_AUTOMATION_AUTH_TOKEN }}
- if: steps.publish.outputs.old-version != steps.publish.outputs.version
run: npm install && npm run pkg:org && npm run tag
run: npm install && npm run pkg:org && npm run tag

### jobs:
### publish:
### if: github.event.pull_request.merged == true
### runs-on: ubuntu-latest
### strategy:
### matrix:
### node-version: [16.x]
### # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
### steps:
### - uses: actions/checkout@v3
### - uses: actions/setup-node@v3
### with:
### node-version: ${{ matrix.node-version }}
### cache: 'npm'
### - id: publish
### uses: JS-DevTools/npm-publish@v1
### with:
### access: "public"
### tag: ${{ steps.publish.outputs.version }}
### token: ${{ secrets.NPM_GITHUB_OBEWDS_AUTOMATION_AUTH_TOKEN }}
### - if: steps.publish.outputs.old-version != steps.publish.outputs.version
### run: npm install && npm run pkg:org && npm run tag
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@obewds/vilt-ds",
"version": "0.1.3",
"version": "0.1.4",
"description": "The official repository for the VILT Design System for the Vue.js, Inertia.js, Laravel, and Tailwind CSS web app stack that is turbocharged with Typescript and VueVentus.",
"license": "MIT",
"author": "Matt McT",
Expand Down