File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed
Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Stable Release to npm
2+ on :
3+ release :
4+ types : [published]
5+ jobs :
6+ build :
7+ runs-on : ubuntu-latest
8+ # No -alpha. or -beta. in tags
9+ if : ${{ !contains(github.event.release.tag_name, '-') }}
10+ permissions :
11+ contents : read
12+ id-token : write
13+ steps :
14+ - uses : actions/checkout@v4
15+ # Setup .npmrc file to publish to npm
16+ - uses : actions/setup-node@v4
17+ with :
18+ node-version : " 20"
19+ registry-url : ' https://registry.npmjs.org'
20+ - run : npm install
21+ - run : npm test
22+ - run : npm publish --provenance --access=public
23+ env :
24+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 11{
22 "name" : " @11ty/create" ,
3- "version" : " 1.0.4-beta.1 " ,
3+ "version" : " 1.0.4" ,
44 "description" : " A little command line utility to create files in a cross-platform way." ,
55 "main" : " create.js" ,
66 "type" : " module" ,
You can’t perform that action at this time.
0 commit comments