-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Also replace `npm i` with `npm ci` in other workflow targets. - Also fix `README.md` being accidentally published as npm package `README.md`.
- Loading branch information
Showing
6 changed files
with
44 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Simple workflow for deploying static content to GitHub Pages | ||
name: Publish NPM package | ||
|
||
on: | ||
# Runs on pushes targeting the deploy branch | ||
push: | ||
branches: ["publish"] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Install node modules | ||
run: npm ci | ||
|
||
- name: Build | ||
env: | ||
NODE_AUTH_TOKEN: "${{ secrets.NPM_PUBLISH_TOKEN }}" | ||
run: make ci-publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,4 @@ jobs: | |
node-version: 18.x | ||
|
||
- name: Run tests | ||
run: npm install && npx jest | ||
run: npm ci && npx jest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Twelf on Wasm Support | ||
===================== | ||
|
||
What we publish as an npm library as package `twelf-wasm` is just a | ||
small library. The intended use is for libary users (specifically the | ||
Twelf wiki) to conveniently construct url-fragment arguments with the | ||
`encode` function so that they can link to twelf-wasm and have it load | ||
a particular bit of twelf code at startup. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters