Update LKG #416
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: Create Releasable Package Drop | |
on: | |
push: | |
branches: | |
- release-* | |
permissions: | |
contents: read | |
# Ensure scripts are run with pipefail. See: | |
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 | |
with: | |
node-version: 'lts/*' | |
- run: | | |
npm --version | |
# corepack enable npm | |
npm install -g $(jq -r '.packageManager' < package.json) | |
npm --version | |
- name: npm install and test | |
run: | | |
npm ci | |
npm test | |
- name: Installing browsers | |
run: npx playwright install --with-deps | |
- name: Validate the browser can import TypeScript | |
run: npx hereby test-browser-integration | |
- name: LKG, clean, and pack | |
run: | | |
npx hereby LKG | |
npx hereby clean | |
node ./scripts/addPackageJsonGitHead.mjs package.json | |
npm pack ./ | |
mv typescript-*.tgz typescript.tgz | |
- name: Upload built tarfile | |
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6 | |
with: | |
name: tgz | |
path: typescript.tgz |