disposable-domains 1.0.15 → 1.0.17
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/.github/workflows/publish.yml +50 -0
- package/index.json +2173 -47
- package/package.json +2 -2
- package/wildcard.json +120 -1
- package/scripts/release.js +0 -164
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
name: Publish to npm
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
publish:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
id-token: write
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
with:
|
|
17
|
+
fetch-depth: 0
|
|
18
|
+
|
|
19
|
+
- uses: actions/setup-node@v4
|
|
20
|
+
with:
|
|
21
|
+
node-version: 20
|
|
22
|
+
registry-url: https://registry.npmjs.org
|
|
23
|
+
|
|
24
|
+
- name: Install dependencies
|
|
25
|
+
run: npm ci
|
|
26
|
+
|
|
27
|
+
- name: Process domain lists (includes tests)
|
|
28
|
+
run: npm run process
|
|
29
|
+
|
|
30
|
+
- name: Ensure repo is clean after processing
|
|
31
|
+
run: |
|
|
32
|
+
if ! git diff --quiet; then
|
|
33
|
+
echo "Repository not clean after running npm run process. Please commit generated changes before tagging."
|
|
34
|
+
git diff --stat
|
|
35
|
+
exit 1
|
|
36
|
+
fi
|
|
37
|
+
|
|
38
|
+
- name: Ensure tag matches package.json version
|
|
39
|
+
run: |
|
|
40
|
+
TAG_VERSION="${GITHUB_REF_NAME#v}"
|
|
41
|
+
PKG_VERSION=$(node -p "require('./package.json').version")
|
|
42
|
+
if [ "$TAG_VERSION" != "$PKG_VERSION" ]; then
|
|
43
|
+
echo "Tag version ($TAG_VERSION) does not match package.json version ($PKG_VERSION)"
|
|
44
|
+
exit 1
|
|
45
|
+
fi
|
|
46
|
+
|
|
47
|
+
- name: Publish to npm
|
|
48
|
+
env:
|
|
49
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
50
|
+
run: npm publish --provenance
|