[CI] Fix macOS Arm64 Release workflow (#1223) #124
Workflow file for this run
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: Draft Release Linux | |
on: | |
push: | |
tags: | |
- 'v*' | |
workflow_dispatch: | |
env: | |
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }} | |
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }} | |
jobs: | |
draft-releases: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Update deps | |
run: sudo apt-get update | |
- run: sudo apt-get install --no-install-recommends -y libarchive-tools libopenjp2-tools rpm | |
- name: Checkout repository. | |
uses: actions/checkout@v4 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- uses: pnpm/action-setup@v3 | |
with: | |
standalone: ${{ runner.os == 'Windows' }} | |
- name: Install node-gyp | |
run: pnpm add --global node-gyp | |
shell: bash | |
- name: Reconfigure git to use HTTP authentication | |
run: > | |
git config --global url."https://github.com/".insteadOf | |
ssh://[email protected]/ | |
- name: Authenticate with private NPM package | |
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | |
- name: Install modules. | |
run: pnpm run setup | |
- name: setup env production file | |
run: | | |
echo "VITE_LD_ENVIRONMENT_ID=${{ secrets.VITE_LD_ENVIRONMENT_ID }}" > .env.production | |
echo "VITE_IPFS_API=${{ secrets.VITE_IPFS_API }}" >> .env.production | |
- name: Build artifacts. | |
run: pnpm run release:linux |