chore(deps-dev): bump the all group with 7 updates #299
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: build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: yarn | |
- run: yarn install --frozen-lockfile | |
- run: yarn format:check | |
- run: yarn lint | |
- run: yarn typecheck | |
- run: yarn build | |
- run: yarn test | |
- name: test built package | |
run: | | |
mkdir ../foo | |
cd ../foo | |
yarn init -y | |
yarn add esbuild-plugin-browserslist@"../esbuild-plugin-browserslist" | |
yarn install | |
echo " | |
const { esbuildPluginBrowserslist, resolveToEsbuildTarget } = require('esbuild-plugin-browserslist'); | |
const assert = require('assert'); | |
assert.strictEqual(esbuildPluginBrowserslist().name, 'esbuild-plugin-browserslist'); | |
assert.strictEqual(resolveToEsbuildTarget(['chrome 90'])[0], 'chrome90'); | |
" > test.js | |
node test.js |