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
63 changes: 63 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
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 npm:publish:dry-run

- run: npm run npm:publish
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.idea
.goose
.goosehints
.bin
coverage
node_modules
38 changes: 0 additions & 38 deletions bin/cjs/command/AsyncCommand.js

This file was deleted.

147 changes: 0 additions & 147 deletions bin/cjs/command/AsyncMacroCommand.js

This file was deleted.

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

This file was deleted.

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

This file was deleted.

34 changes: 0 additions & 34 deletions bin/esm/command/AsyncCommand.js

This file was deleted.

Loading