@dpuse/dpuse-development 0.3.799 → 0.3.800

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-development",
3
- "version": "0.3.799",
3
+ "version": "0.3.800",
4
4
  "private": false,
5
5
  "description": "Actions for managing DPUse projects.",
6
6
  "license": "MIT",
@@ -27,9 +27,10 @@
27
27
  "files": [
28
28
  ".editorconfig",
29
29
  ".gitattributes",
30
+ ".github/dependabot.private.rust.yml",
30
31
  ".github/dependabot.private.yml",
32
+ ".github/dependabot.rust.yml",
31
33
  ".github/dependabot.yml",
32
- ".github/publish.cloudflare.yml",
33
34
  ".github/workflows",
34
35
  ".gitignore_default",
35
36
  ".markdownlint.json",
@@ -38,6 +39,7 @@
38
39
  "dist",
39
40
  "eslint.config.default.js",
40
41
  "LICENSE",
42
+ "rust-toolchain.toml",
41
43
  "scripts/tsconfig.json",
42
44
  "SECURITY.md",
43
45
  "tsconfig.json",
@@ -0,0 +1,5 @@
1
+ # Pins the Rust version and the WebAssembly target, for local builds and CI alike. 'rustup' installs both on the first build.
2
+ [toolchain]
3
+ channel = "1.98.1"
4
+ profile = "minimal"
5
+ targets = ["wasm32-unknown-unknown"]
@@ -1,67 +0,0 @@
1
- name: Publish
2
-
3
- on:
4
- release:
5
- types: [published]
6
-
7
- permissions:
8
- contents: read
9
-
10
- jobs:
11
- publish:
12
- name: Publish to Cloudflare
13
- runs-on: ubuntu-latest
14
- steps:
15
- - name: Checkout
16
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
17
-
18
- # TODO: When the Node version below ships with npm 12, keep only the later 'Setup Node with npm cache' step, renamed
19
- # 'Setup Node', and remove this step and 'Setup npm'. Until then Node is set up twice: first with caching off, because
20
- # setup-node checks the cache with the npm bundled with Node (11), which 'devEngines' in package.json rejects. Caching
21
- # must be switched off explicitly, as setup-node turns it on by itself when package.json names a package manager.
22
- - name: Setup Node
23
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
24
- with:
25
- node-version: 24
26
- package-manager-cache: false
27
-
28
- # Replaces the bundled npm with npm 12, unpacked from a download checked against a pinned hash. Not installed with
29
- # 'npm install -g', which OpenSSF Scorecard always counts as unpinned. Runs in the temp folder to keep the download
30
- # out of the checkout. When changing the version, update the URL and take the new hash from:
31
- # npm view npm@<version> dist.integrity | base64 -d | xxd -p | tr -d '\n'
32
- - name: Setup npm
33
- run: |
34
- curl --proto '=https' -fsSLo npm.tgz https://registry.npmjs.org/npm/-/npm-12.1.0.tgz
35
- echo "17286eeb6a4dc7bd180acff9f9d1262504c556648ac2fa39080d2abc19060d1a686f8d8c27a1b6450dad77178a3389d89c8643aa4600c4482ab687a39fd406b5 npm.tgz" | sha512sum -c -
36
- npm_directory="$(dirname "$(dirname "$(command -v node)")")/lib/node_modules/npm"
37
- rm -rf "$npm_directory" && mkdir "$npm_directory"
38
- tar -xzf npm.tgz -C "$npm_directory" --strip-components=1
39
- npm --version
40
- working-directory: ${{ runner.temp }}
41
-
42
- # The same Node again, now with npm 12, so the npm cache can be used.
43
- - name: Setup Node with npm cache
44
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
45
- with:
46
- node-version: 24
47
- cache: npm
48
-
49
- - name: Install dependencies
50
- run: npm ci --ignore-scripts
51
-
52
- - name: Build
53
- run: npm run build
54
-
55
- # Repeats the CI checks: a release is created straight after its push, so this runs alongside CI rather than
56
- # after it, and must not publish a commit that fails them.
57
- - name: Lint
58
- run: npm run lint
59
-
60
- - name: Test
61
- run: npm test
62
-
63
- - name: Publish
64
- run: npm run publish
65
- env:
66
- CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
67
- CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}