Add GitHub action for next publishing #2
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: Publish Next | ||
on: workflow_dispatch | ||
jobs: | ||
build: | ||
name: Perform Publishing | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js 18.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Use Python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
- name: Install | ||
shell: bash | ||
run: | | ||
yarn global add node-gyp | ||
yarn --skip-integrity-check --network-timeout 100000 | ||
env: | ||
NODE_OPTIONS: --max_old_space_size=4096 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # https://github.com/microsoft/vscode-ripgrep/issues/9 | ||
- name: Publish NPM | ||
shell: bash | ||
run: | | ||
yarn publish:next | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |