Skip to content

Commit

Permalink
chore: add verify & release workflows (#1018)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenbroekema committed Oct 2, 2023
1 parent d043139 commit 7d2310c
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release

on:
push:
branches:
- v4

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
25 changes: 25 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Verify changes

on: pull_request

jobs:
verify:
name: Verify changes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Node 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x

- name: Install Dependencies
run: npm ci

- name: Lint & Test
run: npm run test

# in case we use playwright & @web/test-runner in the future
# - name: Install chromium
# run: npx playwright install-deps chromium

0 comments on commit 7d2310c

Please sign in to comment.