Skip to content

Commit 6f72906

Browse files
author
matus.hudec
committed
Release 7.0.3
1 parent 29510d3 commit 6f72906

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.github/workflows/npm-publish.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,26 @@ on:
44
push:
55
branches:
66
- main
7+
tags:
8+
- 'v*'
9+
10+
permissions:
11+
id-token: write # Required for OIDC
12+
contents: read
713

814
jobs:
915
npm-publish:
1016
name: npm publish
1117
runs-on: ubuntu-latest
1218
steps:
1319
- name: Checkout repository
14-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
1521

1622
- name: Set up Node.js
17-
uses: actions/setup-node@v2.1.4
23+
uses: actions/setup-node@v4
1824
with:
19-
node-version: 20
25+
node-version: '20'
26+
registry-url: 'https://registry.npmjs.org'
2027

2128
- name: Install dependencies
2229
run: yarn
@@ -28,11 +35,8 @@ jobs:
2835
run: yarn build
2936

3037
- name: Publish if version has been updated
31-
uses: pascalgn/npm-publish[email protected]
38+
run: yarn npm publish --access public
3239
with:
3340
tag_name: 'v%s'
3441
tag_message: 'v%s'
3542
commit_pattern: "Release (\\S+)"
36-
env:
37-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # automatically generated
38-
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lambda-essentials-ts",
3-
"version": "7.0.2",
3+
"version": "7.0.3",
44
"description": "A selection of the finest modules supporting authorization, API routing, error handling, logging and sending HTTP requests.",
55
"main": "lib/index.js",
66
"private": false,

0 commit comments

Comments
 (0)