-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.21 KB
/
mongodb-session-push-main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: "@iwsio/mongodb-express-session: PUSH to main"
on:
push:
branches: [ main ]
paths:
- 'package/**'
jobs:
tests:
if: ${{ !contains(github.event.head_commit.message, '#skip') }}
uses: iwsllc/workflows/.github/workflows/test.yaml@v2
with:
node-version-file: '.nvmrc'
install-command: npm ci -w package
test-command: npm test -w package
version:
needs: tests
if: ${{ !contains(github.event.head_commit.message, '#skip') }}
uses: iwsllc/workflows/.github/workflows/version.yaml@v2
with:
ref: main
node-version-file: '.nvmrc'
version-command: npm version patch -ws --include-workspace-root
publish:
needs: version
if: ${{ !contains(github.event.head_commit.message, '#skip') }}
uses: iwsllc/workflows/.github/workflows/publish.yaml@v2
with:
ref: main
registry-url: https://registry.npmjs.org
node-version-file: '.nvmrc'
install-command: npm ci -w package
build-command: npm run build -w package
publish-command: npm publish -w package --access public
secrets:
# This token is used for reading npm packages; use when private packages are used
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}