forked from atom/superstring
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Implement automatic publishing to NPM #16
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
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
80aacfe
Use basic testing mechanism like we use elsewhere
confused-Techie c04236f
Match install steps to `ci.yml` allow `package.json` update to be wri…
confused-Techie f3e32e3
Apply automatic changes
confused-Techie 0a3c5da
Revert "Apply automatic changes"
confused-Techie e2e156f
Ensure `package-lock.json` content is allowed within the repo, ignore…
confused-Techie 8b6588d
Apply automatic changes
confused-Techie 94fe796
Remove ability to write lock file. Match test methodology
confused-Techie 6d56d72
Fix indentation of workflow file
confused-Techie 40cf2c9
Finalize publication steps
confused-Techie 789a3b6
Stop testing CI on NodeJS v18
confused-Techie 0b58fbb
Add support for the `CP437` character on macOS
confused-Techie 5396463
Remove prepublish actions
confused-Techie 422defc
Update .github/workflows/publish.yml
confused-Techie 5933fb4
Apply changes to find the right python version to tests
confused-Techie d4ad928
Update Catch2…
savetheclocktower 7614645
Update other references to `catch.hpp`
savetheclocktower c5f6fae
Fix assertions
savetheclocktower 891d408
Bump the minimum deployment target as required by Catch2, apparently
savetheclocktower daddbad
Fix typos in `binding.gyp`
savetheclocktower 14e4a06
Merge pull request #1 from savetheclocktower/possible-rng-fix
confused-Techie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,35 @@ | ||
| name: NPM Publish | ||
|
|
||
| on: | ||
| release: | ||
| types: [created] | ||
| workflow_dispatch: | ||
|
|
||
| env: | ||
| NODE_VERSION: 16 | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: ${{ env.NODE_VERSION }} | ||
| registry-url: https://registry.npmjs.org/ | ||
| - name: Install Python setuptools | ||
| # Reasoning for this in `ci.yml` | ||
| run: | | ||
| python3 -m venv CI_venv | ||
| source CI_venv/bin/activate | ||
| python3 -m pip install setuptools | ||
| - name: Install Dependencies | ||
| run: | | ||
| source CI_venv/bin/activate | ||
| npm config set python "$(which python3)" | ||
| npm ci | ||
| - run: | | ||
| npm run test:node | ||
| npm run test:native | ||
| - run: npm publish --access public | ||
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -6,6 +6,5 @@ ext | |
|
|
||
| /browser.js | ||
| emsdk-portable | ||
| package-lock.json | ||
|
|
||
| vendor/libiconv | ||
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.