Skip to content

Fix out of sync packages #132

Fix out of sync packages

Fix out of sync packages #132

name: publish-prerelease
on:
push:
branches-ignore:
- main
pull_request:
branches-ignore:
- main
jobs:
build:
name: build
runs-on: ubuntu-latest
environment:
name: prerelease
permissions:
contents: read
packages: write
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: true
- name: Setup node, test and build
uses: actions/setup-node@v4
with:
node-version: '20.10'
registry-url: 'https://npm.pkg.github.com'
- run: |
npm ci
npm run compile
- run: cd dist/ && npm version prerelease --preid=ci-$GITHUB_RUN_ID --no-git-tag-version && npm pack
- name: Upload
uses: actions/upload-artifact@v4
with:
name: nocc-package-prerelease
path: "dist/*.tgz"