-
Notifications
You must be signed in to change notification settings - Fork 157
Migrate to GitHub Actions #199
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
base: master
Are you sure you want to change the base?
Conversation
f953c5f to
d55d9be
Compare
d55d9be to
ebf1dd4
Compare
|
any process? |
cclauss
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this!!
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| uses: actions/checkout@v2 | |
| uses: actions/checkout@v3 |
| uses: actions/checkout@v2 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| uses: actions/setup-python@v2 | |
| uses: actions/setup-python@v4 |
| - name: Set up Python | ||
| uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: 3.9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| python-version: 3.9 | |
| python-version: 3.x |
| - uses: actions/setup-node@v2 | ||
|
|
||
| - name: Set up Node.js LTS | ||
| uses: actions/setup-node@v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| uses: actions/setup-node@v2 | |
| uses: actions/setup-node@v3 |
| run: npm run prebuild | ||
|
|
||
| - name: Upload artifacts for ${{ matrix.os }} | ||
| uses: actions/upload-artifact@v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| uses: actions/upload-artifact@v2 | |
| uses: actions/upload-artifact@v3 |
| npm install node-gyp@latest | ||
| - name: Download prebuilt artifacts | ||
| uses: actions/download-artifact@v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| uses: actions/download-artifact@v2 | |
| uses: actions/download-artifact@v3 |
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| uses: actions/checkout@v2 | |
| uses: actions/checkout@v3 |
| uses: actions/checkout@v2 | ||
|
|
||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| uses: actions/setup-node@v2 | |
| uses: actions/setup-node@v3 |
| cache: 'npm' | ||
|
|
||
| - name: Download prebuilt artifacts | ||
| uses: actions/download-artifact@v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| uses: actions/download-artifact@v2 | |
| uses: actions/download-artifact@v3 |
| node-version: ${{ matrix.node }} | ||
| cache: 'npm' | ||
|
|
||
| - name: Update node-gyp for Node.js <= 14 on Windows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is no longer needed because v14 is end-of-life.
|
A gentle nudge on this, please. |
The new workflow:
windows-latest,linux-latestanddarwin-latestplatformsv*, publish it to NPMWhat need to do to make this migration works:
https://www.npmjs.com/settings/<yourname>/tokenswith at least aPublishpermissionNPM_TOKENon https://github.com/node-ffi-napi/node-ffi-napi/settings/secrets/actions with the token just created.Here's how to publish a new version:
npm version 4.0.4 # npm will create a git tag v4.0.4 automatically git push origin master --tags