Skip to content

Commit

Permalink
Merge pull request #279 from jonataswalker/npm-publish-provenance
Browse files Browse the repository at this point in the history
npm publish
  • Loading branch information
jonataswalker authored Mar 8, 2024
2 parents 36a7a05 + 32269e8 commit d25f7e2
Show file tree
Hide file tree
Showing 5 changed files with 5,583 additions and 570 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 20 ]
name: Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
# - name: Install Playwright Browsers
# run: npx playwright install --with-deps
- name: Run tests
run: npm test
# - uses: actions/upload-artifact@v4
# if: always()
# with:
# name: playwright-report
# path: playwright-report/
# retention-days: 30
21 changes: 21 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: npm-publish
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
32 changes: 0 additions & 32 deletions .github/workflows/test.yml

This file was deleted.

Loading

0 comments on commit d25f7e2

Please sign in to comment.