Fixes bug with preparser options making semantic errors not show up c… #147
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 packages to npm | |
on: | |
push: | |
branches: ['main'] | |
env: | |
NODE_OPTIONS: '--max_old_space_size=4096' | |
jobs: | |
canary-release-to-npm: | |
name: 'Canary release to npm' | |
needs: stable-release-to-npm | |
environment: publish-npm | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Setup antlr4 | |
uses: ./.github/actions/setup-antlr4 | |
- name: Install dependencies with frozen lock file and generate parser | |
run: npm ci | |
- name: Build and release canary package to npm | |
run: node ./release-canary.js | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
stable-release-to-npm: | |
name: 'Stable release to npm' | |
environment: publish-npm | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Setup antlr4 | |
uses: ./.github/actions/setup-antlr4 | |
- name: Install dependencies with frozen lock file and generate parser | |
run: npm ci | |
- name: Create Release Pull Request or Publish to npm | |
id: changesets | |
uses: changesets/action@3de3850952bec538fde60aac71731376e57b9b57 # v1.4.8 | |
with: | |
publish: npm run release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |