Skip to content

Commit 9a3b790

Browse files
authored
Merge pull request #1 from PureMVC/github-workflow-setup
Changes for 1.0.3 Release
2 parents bb67bb2 + 5548280 commit 9a3b790

File tree

18 files changed

+202
-670
lines changed

18 files changed

+202
-670
lines changed

.github/workflows/main.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
pull_request:
7+
release:
8+
types: [published]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version-file: package.json
20+
cache: npm
21+
22+
# Working around https://github.com/npm/cli/issues/4828
23+
# - run: npm ci
24+
- run: npm install --no-package-lock
25+
26+
- name: Check formatting
27+
run: npm run format:check
28+
29+
- name: Check syntax
30+
run: npm run lint
31+
32+
- name: Check types
33+
run: npm run typecheck
34+
35+
- name: Run tests
36+
run: npm test
37+
38+
- run: npm run build
39+
40+
publish:
41+
runs-on: ubuntu-latest
42+
if: github.event_name == 'release'
43+
needs: build
44+
45+
permissions:
46+
contents: read
47+
id-token: write
48+
49+
steps:
50+
- uses: actions/checkout@v4
51+
- uses: actions/setup-node@v4
52+
with:
53+
node-version-file: package.json
54+
cache: npm
55+
registry-url: "https://registry.npmjs.org"
56+
57+
# Working around https://github.com/npm/cli/issues/4828
58+
# - run: npm ci
59+
- run: npm install --no-package-lock
60+
61+
- run: npm run npm:publish:dry-run
62+
63+
- run: npm run npm:publish

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.idea
22
.goose
3-
.goosehints
3+
.bin
44
coverage
55
node_modules

bin/cjs/command/AsyncCommand.js

Lines changed: 0 additions & 38 deletions
This file was deleted.

bin/cjs/command/AsyncMacroCommand.js

Lines changed: 0 additions & 147 deletions
This file was deleted.

bin/cjs/index.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

bin/cjs/package.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

bin/esm/command/AsyncCommand.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)