Skip to content

Commit 0942e76

Browse files
committed
v4.0.0
1 parent 7afcf1a commit 0942e76

File tree

3 files changed

+34
-5
lines changed

3 files changed

+34
-5
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish Release to npm
2+
on:
3+
release:
4+
types: [published]
5+
permissions: read-all
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
id-token: write
12+
steps:
13+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
14+
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # 4.0.3
15+
with:
16+
node-version: "20"
17+
registry-url: 'https://registry.npmjs.org'
18+
- run: npm install
19+
- run: npm test
20+
- if: ${{ github.event.release.tag_name != '' && env.NPM_PUBLISH_TAG != '' }}
21+
run: npm publish --provenance --access=public --tag=${{ env.NPM_PUBLISH_TAG }}
22+
env:
23+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
24+
NPM_PUBLISH_TAG: ${{ contains(github.event.release.tag_name, '-beta.') && 'beta' || 'latest' }}

CHANGELOG.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
# Changelog
22

3+
## v4.0.0
4+
5+
- Upgrade major dep `@11ty/eleventy-utils@2` with **Node 18+** minimum bump
6+
- Adds npm provenance
7+
38
## v3.0.1
49

5-
* Milestone: https://github.com/11ty/eleventy-dependency-tree/milestone/1?closed=1
6-
* Add support for `pnpm` #3
7-
* Ignore tests for npm publish #4
10+
- Milestone: https://github.com/11ty/eleventy-dependency-tree/milestone/1?closed=1
11+
- Add support for `pnpm` #3
12+
- Ignore tests for npm publish #4
813

914
## v3.0.0
1015

11-
* All paths returned from this utility are normalized to POSIX-format by default.
16+
- All paths returned from this utility are normalized to POSIX-format by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@11ty/dependency-tree",
3-
"version": "3.0.1",
3+
"version": "4.0.0",
44
"description": "Finds all JavaScript CommmonJS require() dependencies from a filename.",
55
"main": "main.js",
66
"files": [

0 commit comments

Comments
 (0)