Skip to content

Archives VSCode artifacts (#257) #114

Archives VSCode artifacts (#257)

Archives VSCode artifacts (#257) #114

name: Publish packages to npm
on:
push:
branches: ['main']
env:
NODE_OPTIONS: '--max_old_space_size=4096'
jobs:
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@f13b1baaa620fde937751f5d2c3572b9da32af23 # v1.4.5
with:
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
canary-release-to-npm:
name: 'Canary 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 }}