Skip to content

Commit

Permalink
Update publish and unit tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
igoroctaviano committed Jun 6, 2024
1 parent b1debf1 commit 7961af1
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 37 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
types: [published]
jobs:
build:
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -16,6 +13,6 @@ jobs:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm publish --provenance --access public
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_DMV_GRANULAR }}
33 changes: 0 additions & 33 deletions .github/workflows/run_unit_tests.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow will install JavaScript dependencies, run tests and lint.

name: unit tests

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
name: Build and run tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["12.x", "14.x", "16.x"]

steps:
- uses: actions/checkout@v2
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies
run: npm install
- name: Build package in production mode
run: npm run build
- name: Lint with standard
run: npm run lint
- name: Test with jest
run: npm run test

0 comments on commit 7961af1

Please sign in to comment.