Skip to content

Bump playwright-ng-schematics from 2.1.0 to 21.0.10 #423

Bump playwright-ng-schematics from 2.1.0 to 21.0.10

Bump playwright-ng-schematics from 2.1.0 to 21.0.10 #423

Workflow file for this run

name: main
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # Need all tags to get a version number in-between tags
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm build-demo
- uses: actions/upload-artifact@v7
with:
name: dist
path: dist/
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: ./node_modules/.bin/ng test fab-speed-dial --progress false --watch=false --browsers ChromeHeadless
- run: ./node_modules/.bin/ng test demo --progress false --watch=false --browsers ChromeHeadless
- run: pnpm e2e
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm lint
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: ./node_modules/.bin/prettier --experimental-cli --check .
publish-demo:
runs-on: ubuntu-latest
needs:
- build
- test
steps:
- uses: actions/download-artifact@v8
with:
name: dist
path: dist/
- uses: crazy-max/ghaction-github-pages@v5
with:
build_dir: dist/demo/browser
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
packages: write
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
needs: [build, test, lint, prettier]
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.ref }} # Otherwise our annotated tag is not fetched and we cannot get correct version
- uses: actions/download-artifact@v8
with:
name: dist
path: dist/
- run: rm .gitignore
# Publish to npm
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v6
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
- run: pnpm publish --provenance --no-git-checks dist/fab-speed-dial/
# Create release
- name: Get release info
run: git tag --format '%(contents:body)' --points-at > release-body.txt
- uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
bodyFile: release-body.txt