@questwork/q-utilities 0.1.24 → 0.1.29

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.
@@ -5,16 +5,12 @@ on:
5
5
  - 'v*'
6
6
  workflow_dispatch:
7
7
 
8
- permissions:
9
- id-token: write # Required for OIDC
10
- contents: read
11
-
12
8
  jobs:
13
9
  publish:
14
10
  runs-on: ubuntu-latest
15
11
  permissions:
16
12
  contents: read
17
- packages: write
13
+ id-token: write # OIDC
18
14
  # environment: production
19
15
  steps:
20
16
  - uses: actions/checkout@v4
@@ -51,7 +47,14 @@ jobs:
51
47
  # NODE_AUTH_TOKEN: ${{ secrets.QW_NPM_TOKEN }}
52
48
 
53
49
  - name: Update npm
54
- run: npm install -g npm@latest
50
+ run: |
51
+ NPM_VERSION=$(npm -v)
52
+ echo "Current npm version: $NPM_VERSION"
53
+ if ! npx semver -r ">=11.5.1" "$NPM_VERSION"; then
54
+ echo "npm version $NPM_VERSION is too old. Installing latest npm..."
55
+ npm install -g npm@latest
56
+ echo "Updated npm version: $(npm -v)"
57
+ fi
55
58
 
56
59
  - name: Publish to npm
57
- run: npm publish --access public
60
+ run: npm publish --no-git-checks --access public
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@questwork/q-utilities",
3
- "version": "0.1.24",
3
+ "version": "0.1.29",
4
4
  "description": "Questwork QUtilities",
5
5
  "author": {
6
6
  "name": "Questwork Consulting Limited",