Skip to content

Commit 7961af1

Browse files
committed
Update publish and unit tests workflow
1 parent b1debf1 commit 7961af1

File tree

3 files changed

+34
-37
lines changed

3 files changed

+34
-37
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
types: [published]
55
jobs:
66
build:
7-
permissions:
8-
contents: read
9-
id-token: write
107
runs-on: ubuntu-latest
118
steps:
129
- uses: actions/checkout@v4
@@ -16,6 +13,6 @@ jobs:
1613
node-version: "20.x"
1714
registry-url: "https://registry.npmjs.org"
1815
- run: npm ci
19-
- run: npm publish --provenance --access public
16+
- run: npm publish --access public
2017
env:
2118
NODE_AUTH_TOKEN: ${{ secrets.NPM_DMV_GRANULAR }}

.github/workflows/run_unit_tests.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/unit-tests.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow will install JavaScript dependencies, run tests and lint.
2+
3+
name: unit tests
4+
5+
on:
6+
push:
7+
branches: [master]
8+
pull_request:
9+
branches: [master]
10+
11+
jobs:
12+
build:
13+
name: Build and run tests
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
node-version: ["12.x", "14.x", "16.x"]
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Set up Node ${{ matrix.node-version }}
22+
uses: actions/setup-node@v2
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
cache: "npm"
26+
- name: Install dependencies
27+
run: npm install
28+
- name: Build package in production mode
29+
run: npm run build
30+
- name: Lint with standard
31+
run: npm run lint
32+
- name: Test with jest
33+
run: npm run test

0 commit comments

Comments
 (0)