Skip to content

Commit 3d5cabf

Browse files
committed
use trusted publish for npm publish workflow
1 parent 3c4499a commit 3d5cabf

3 files changed

Lines changed: 20 additions & 11 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,27 @@ on:
55
push:
66
branches: [main]
77
paths-ignore:
8-
- '*.md'
8+
- "*.md"
99

1010
jobs:
11-
build:
11+
publish:
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
id-token: write
16+
1317
steps:
1418
- uses: actions/checkout@v2
1519
- uses: actions/setup-node@v1
1620
with:
17-
node-version: '14.x'
18-
registry-url: 'https://registry.npmjs.org'
19-
- run: npm ci
20-
- uses: JS-DevTools/npm-publish@v1
21-
with:
22-
token: ${{ secrets.NPM_TOKEN }}
21+
node-version: "14.x"
22+
registry-url: "https://registry.npmjs.org"
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Build package
28+
run: npm run build --if-present
29+
30+
- name: Publish package
31+
run: npm publish --access public

npm-shrinkwrap.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "caccl-deploy",
3-
"version": "0.19.0",
3+
"version": "0.19.0-pubfix",
44
"description": "A cli tool for managing ECS/Fargate app deployments",
55
"main": "index.js",
66
"bin": {

0 commit comments

Comments
 (0)