Skip to content
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
65 changes: 65 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
on:
push:
branches:
- main

pull_request:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: npm

# Working around https://github.com/npm/cli/issues/4828
# - run: npm ci
- run: npm install --no-package-lock

- name: Check formatting
run: npm run format:check

- name: Check syntax
run: npm run lint

- name: Check types
run: npm run typecheck

- name: Run tests
run: npm test

- run: npm run build

publish:
runs-on: ubuntu-latest
if: github.event_name == 'release'
needs: build

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: npm
registry-url: "https://registry.npmjs.org"

# Working around https://github.com/npm/cli/issues/4828
# - run: npm ci
- run: npm install --no-package-lock

- run: npm run build

- run: npm run npm:publish:dry-run

- run: npm run npm:publish
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.idea
.goose
.goosehints
.bin
coverage
node_modules
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

5 changes: 3 additions & 2 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
PureMVC Typescript Utility - State Machine
--------------------------------------------------------------------------
Release Date: 4/22/25
Release Date: 11/25/25
Platform: Typescript
Version: 1
Revision: 0
Minor: 2
Minor: 3
Authors: Cliff Hall <cliff.hall@puremvc.org>
--------------------------------------------------------------------------

1.0.0 Initial port from the AS3 source.
1.0.1 NPM Package link
1.0.2 Fix entry point in package.json
1.0.3 Add github workflow file for build/publish
50 changes: 0 additions & 50 deletions bin/cjs/fsm/FSMInjector.js

This file was deleted.

21 changes: 0 additions & 21 deletions bin/cjs/fsm/State.js

This file was deleted.

85 changes: 0 additions & 85 deletions bin/cjs/fsm/StateMachine.js

This file was deleted.

9 changes: 0 additions & 9 deletions bin/cjs/index.js

This file was deleted.

1 change: 0 additions & 1 deletion bin/cjs/package.json

This file was deleted.

2 changes: 0 additions & 2 deletions bin/cjs/types.js

This file was deleted.

46 changes: 0 additions & 46 deletions bin/esm/fsm/FSMInjector.js

This file was deleted.

17 changes: 0 additions & 17 deletions bin/esm/fsm/State.js

This file was deleted.

Loading
Loading