@defra/grants-config-utils 0.0.2 → 0.0.4

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.
@@ -4,7 +4,7 @@
4
4
  "@changesets/changelog-github",
5
5
  { "repo": "DEFRA/grants-config-utils" }
6
6
  ],
7
- "commit": false,
7
+ "commit": true,
8
8
  "fixed": [],
9
9
  "linked": [],
10
10
  "access": "public",
@@ -8,6 +8,7 @@ on:
8
8
  permissions:
9
9
  contents: write
10
10
  packages: write
11
+ id-token: write # Required for OIDC
11
12
 
12
13
  jobs:
13
14
  release:
@@ -41,6 +42,11 @@ jobs:
41
42
 
42
43
  - name: Version changed packages
43
44
  run: npm run version:changed
45
+ env:
46
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47
+
48
+ - name: Publish changed packages to npm
49
+ run: npm run publish:changed
44
50
 
45
51
  - name: Commit version bumps & push
46
52
  run: |
@@ -49,12 +55,8 @@ jobs:
49
55
  git add .
50
56
  git commit -m "Version package [skip ci]" || echo "No changes to commit"
51
57
  git push
58
+
52
59
  - name: Create Git tag & GitHub Release
53
60
  run: npm run github:release
54
61
  env:
55
62
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56
-
57
- - name: Publish changed packages to npm
58
- run: npm run publish:changed
59
- env:
60
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -1,7 +1,7 @@
1
1
  organization=defra
2
2
  projectKey=DEFRA_grants-config-utils
3
3
  serverUrl=https://sonarcloud.io
4
- serverVersion=8.0.0.88577
4
+ serverVersion=8.0.0.88736
5
5
  dashboardUrl=https://sonarcloud.io/dashboard?id=DEFRA_grants-config-utils&branch=main
6
- ceTaskId=AZ5utCgLLZ8POhXHmJsR
7
- ceTaskUrl=https://sonarcloud.io/api/ce/task?id=AZ5utCgLLZ8POhXHmJsR
6
+ ceTaskId=AZ5ygy4oY6JbeDuiB89v
7
+ ceTaskUrl=https://sonarcloud.io/api/ce/task?id=AZ5ygy4oY6JbeDuiB89v
package/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ # @defra/grants-config-utils
2
+
3
+ ## 0.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0872722`](https://github.com/DEFRA/grants-config-utils/commit/087272224854f3782b0bc4cc5e7c4123e9ab5e59) Thanks [@aaroncarroll82](https://github.com/aaroncarroll82)! - build: Switch order around in workflow
8
+
9
+ ## 0.0.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [#6](https://github.com/DEFRA/grants-config-utils/pull/6) [`968228f`](https://github.com/DEFRA/grants-config-utils/commit/968228fae0e02db1a0570be9fc3b693d390e76a5) Thanks [@aaroncarroll82](https://github.com/aaroncarroll82)! - Create new version via CI with trusted publishing
package/babel.config.cjs CHANGED
@@ -1,17 +1,17 @@
1
- const { NODE_ENV } = process.env
1
+ const { NODE_ENV } = process.env;
2
2
 
3
3
  module.exports = {
4
4
  presets: [
5
5
  [
6
- '@babel/preset-env',
6
+ "@babel/preset-env",
7
7
  {
8
- modules: NODE_ENV === 'test' ? 'auto' : false
9
- }
10
- ]
8
+ modules: NODE_ENV === "test" ? "auto" : false,
9
+ },
10
+ ],
11
11
  ],
12
12
  env: {
13
13
  test: {
14
- plugins: ['babel-plugin-transform-import-meta']
15
- }
16
- }
17
- }
14
+ plugins: ["babel-plugin-transform-import-meta"],
15
+ },
16
+ },
17
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defra/grants-config-utils",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "NPM module for providing utils for publishing grants config",
5
5
  "engines": {
6
6
  "node": ">=24",