build(deps): bump actions/download-artifact from 2.1.0 to 4.1.7 in /.github/workflows #32
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
name: CI | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+* | |
pull_request: | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, macOS-latest, ubuntu-latest] | |
node-version: [12.x, 14.x, 16.x] | |
steps: | |
- name: Fix git checkout line endings | |
run: git config --global core.autocrlf input | |
- uses: actions/[email protected] | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Windows Setup | |
if: matrix.os == 'windows-latest' | |
run: npm run prepare-win32 | |
- name: Install | |
run: npm install | |
- name: Lint | |
run: npm run jshint | |
- name: Test | |
run: npm run test | |
prebuild: | |
needs: test | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
matrix: | |
os: [windows, macOS, ubuntu] | |
arch: [x64, arm64] | |
exclude: | |
- os: windows | |
arch: arm64 | |
include: | |
- os: windows | |
arch: ia32 | |
steps: | |
- name: Fix git checkout line endings | |
run: git config --global core.autocrlf input | |
- uses: actions/[email protected] | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 12.x | |
- name: Windows Setup | |
if: matrix.os == 'windows' | |
run: npm run prepare-win32 | |
- name: Install | |
run: npm install | |
- name: Prebuild binaries | |
run: npm run prebuild --v8_enable_pointer_compression=false --v8_enable_31bit_smis_on_64bit_arch=false $([[ $OSTYPE != darwin* ]] && echo --llvm_version=0.0 || true) | |
shell: bash | |
env: | |
PREBUILD_ARCH: ${{ matrix.arch }} | |
- name: Upload binaries as an artifact | |
uses: actions/[email protected] | |
with: | |
name: prebuild-${{ matrix.os }}-${{ matrix.arch }} | |
path: prebuilds | |
publish: | |
needs: prebuild | |
runs-on: ubuntu-latest | |
if: github.ref_type == 'tag' | |
steps: | |
- name: Fix git checkout line endings | |
run: git config --global core.autocrlf input | |
- uses: actions/[email protected] | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 12.x | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install | |
run: npm install | |
- name: Download prebuild artifacts | |
uses: actions/[email protected] | |
with: | |
path: artifacts | |
- name: Merge artifacts to prebuilds directory | |
run: | | |
mkdir prebuilds | |
mv artifacts/*/* prebuilds/ | |
rm -r artifacts | |
ls prebuilds | |
- name: Publish to npm | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |