@natlibfi/oracledb-mock 2.0.0-alpha.1 → 2.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
# Melinda node tests and publish
|
|
2
2
|
|
|
3
|
-
name: Melinda-node-tests
|
|
3
|
+
name: Melinda-node-tests-and-publish
|
|
4
4
|
|
|
5
5
|
on: push
|
|
6
6
|
|
|
7
|
+
permissions: # Required for trusted publishing https://docs.npmjs.com/trusted-publishers
|
|
8
|
+
id-token: write
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
7
11
|
jobs:
|
|
12
|
+
|
|
13
|
+
### TESTS
|
|
14
|
+
|
|
8
15
|
build-node-versions:
|
|
9
16
|
name: Node version matrix
|
|
10
17
|
runs-on: ubuntu-latest
|
|
@@ -52,6 +59,25 @@ jobs:
|
|
|
52
59
|
with:
|
|
53
60
|
exclude_pattern: /^@natlibfi/
|
|
54
61
|
|
|
62
|
+
# publish:
|
|
63
|
+
# runs-on: ubuntu-latest
|
|
64
|
+
# needs: [build-node-versions, njsscan]
|
|
65
|
+
# if: contains(github.ref, 'refs/tags/')
|
|
66
|
+
|
|
67
|
+
# steps:
|
|
68
|
+
# - uses: actions/checkout@v5
|
|
69
|
+
# # Setup .npmrc file to publish to npm
|
|
70
|
+
# - uses: actions/setup-node@v6
|
|
71
|
+
# with:
|
|
72
|
+
# node-version: '22.x'
|
|
73
|
+
# registry-url: 'https://registry.npmjs.org'
|
|
74
|
+
# - run: npm i
|
|
75
|
+
# - run: npm publish
|
|
76
|
+
# env:
|
|
77
|
+
# NODE_AUTH_TOKEN: ${{ secrets.ORACLEDB_MOCK_NPM_TOKEN }}
|
|
78
|
+
|
|
79
|
+
## PUBLISH
|
|
80
|
+
|
|
55
81
|
publish:
|
|
56
82
|
runs-on: ubuntu-latest
|
|
57
83
|
needs: [build-node-versions, njsscan]
|
|
@@ -64,7 +90,16 @@ jobs:
|
|
|
64
90
|
with:
|
|
65
91
|
node-version: '22.x'
|
|
66
92
|
registry-url: 'https://registry.npmjs.org'
|
|
67
|
-
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
93
|
+
- name: Update npm
|
|
94
|
+
run: npm install -g npm@latest
|
|
95
|
+
- name: Clean install
|
|
96
|
+
run: npm ci
|
|
97
|
+
# Add build step here if you don't have prepare script
|
|
98
|
+
# Publish stable release with --tag=latest
|
|
99
|
+
- name: Publish stable release
|
|
100
|
+
if: ${{!contains(github.ref, '-alpha')}}
|
|
101
|
+
run: npm publish --tag=latest
|
|
102
|
+
# Publish pre-release without --tag latest
|
|
103
|
+
- name: Publish pre-release
|
|
104
|
+
if: contains(github.ref, '-alpha')
|
|
105
|
+
run: npm publish --tag=next
|