Skip to content

Commit 0bc23ca

Browse files
authored
Merge pull request #90 from aditosoftware/publish-oidc
chore: swapped publishing to OIDC
2 parents dec1b46 + adee68e commit 0bc23ca

File tree

4 files changed

+20
-17
lines changed

4 files changed

+20
-17
lines changed

.github/workflows/npm-publish.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,24 @@ on:
77
release:
88
types: [created]
99

10-
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v5
15-
- uses: actions/setup-node@v5
16-
with:
17-
node-version: 20
18-
- run: npm ci
10+
permissions:
11+
id-token: write # Required for OIDC
12+
contents: read
1913

14+
jobs:
2015
publish-npm:
21-
needs: build
2216
runs-on: ubuntu-latest
2317
steps:
2418
- uses: actions/checkout@v5
2519
- uses: actions/setup-node@v5
2620
with:
2721
node-version: 20
2822
registry-url: https://registry.npmjs.org/
23+
- name: Update npm
24+
run: npm install -g npm@latest
25+
- run: npm -v
2926
- run: npm ci
3027
- run: npm run compile
31-
- run: npm publish --access public
32-
env:
33-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
28+
- run: xvfb-run -a npm test
29+
- run: npm publish
30+

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to the "vscode-input" module will be documented in this file
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/) and and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## 2.0.3
8+
9+
### Changed
10+
11+
- Upgraded various dev dependencies
12+
713
## 2.0.2
814

915
### Changed

package-lock.json

Lines changed: 3 additions & 3 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": "@aditosoftware/vscode-input",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"license": "MIT",
55
"description": "Input components for any vscode extension",
66
"main": "out/src/index.js",

0 commit comments

Comments
 (0)