Skip to content

Develop #12

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

Merged
merged 2 commits into from
Sep 13, 2024
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
32 changes: 31 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
strategy:
matrix:
node-version: [19.x, 20.x, 21.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
Expand All @@ -29,3 +28,34 @@ jobs:
- run: sudo apt-get install xvfb
- run: xvfb-run --auto-servernum npm run test:chrome
- run: xvfb-run --auto-servernum npm run test:firefox

# Separate job for publishing to npm
publish:
runs-on: ubuntu-latest
needs: build # Wait for build to complete
if: github.ref == 'refs/heads/master' && github.event_name == 'push'

steps:
- uses: actions/checkout@v3
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: "20.x"
cache: "npm"
- run: npm install
- run: npm run build

- name: Publish to npm dry-run
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
npm publish --dry-run

- name: Publish to npm
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
npm publish
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ npm i @puremvc/puremvc-js-multicore-framework
* [React Native](https://en.wikipedia.org/wiki/React_Native)

## Status
Production - [Version 2.0.8](https://github.com/PureMVC/puremvc-js-multicore-framework/blob/master/VERSION)
Production - [Version 2.0.9](https://github.com/PureMVC/puremvc-js-multicore-framework/blob/master/VERSION)

#### Documentation
- https://jsdoc.app/about-commandline.html
Expand Down
3 changes: 2 additions & 1 deletion VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Release Date: 9/4/24
Platform: JavaScript
Version: 2
Revision: 0
Minor: 8
Minor: 9
Authors: Saad Shams <[email protected]>
: David Foley <[email protected]>
: Cliff Hall <[email protected]>
Expand All @@ -18,3 +18,4 @@ Release Date: 9/4/24
2.0.6 - NPM package bundling the ESM/CommonJS support
2.0.7 - Finally? NPM bundling
2.0.8 - CI/CD Pipeline
2.0.9 - CI/CD Integrating Automated Tokens
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@puremvc/puremvc-js-multicore-framework",
"version": "2.0.8",
"version": "2.0.9",
"description": "PureMVC MultiCore Framework for JavaScript",
"type": "module",
"main": "bin/cjs/index.cjs",
Expand Down
Loading