From 18c7cf6e31a65eef055cc5ee24808a894fcef81f Mon Sep 17 00:00:00 2001 From: Martin Pivka Date: Fri, 19 Jul 2024 09:42:30 +0200 Subject: [PATCH] release workflow --- .github/workflows/package-release.yaml | 23 +++++ .../{semgrep.yml => semgrep.yml.bckp} | 0 .npmrc | 3 + package.json | 90 +++++++++---------- 4 files changed, 71 insertions(+), 45 deletions(-) create mode 100644 .github/workflows/package-release.yaml rename .github/workflows/{semgrep.yml => semgrep.yml.bckp} (100%) create mode 100644 .npmrc diff --git a/.github/workflows/package-release.yaml b/.github/workflows/package-release.yaml new file mode 100644 index 00000000..80795164 --- /dev/null +++ b/.github/workflows/package-release.yaml @@ -0,0 +1,23 @@ +name: Publish package to GitHub Packages +on: + release: + types: [published] +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v4 + # Setup .npmrc file to publish to GitHub Packages + - uses: actions/setup-node@v4 + with: + node-version: "20.x" + registry-url: "https://npm.pkg.github.com" + # Defaults to the user or organization that owns the workflow file + scope: "@QSXL" + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml.bckp similarity index 100% rename from .github/workflows/semgrep.yml rename to .github/workflows/semgrep.yml.bckp diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..1ae95065 --- /dev/null +++ b/.npmrc @@ -0,0 +1,3 @@ +//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN} +@QSXL:registry=https://npm.pkg.github.com +always-auth=true \ No newline at end of file diff --git a/package.json b/package.json index 4e0528c5..deb93f6a 100644 --- a/package.json +++ b/package.json @@ -1,47 +1,47 @@ { - "name": "passport-linkedin-oauth2", - "version": "3.0.0", - "description": "Passport for LinkedIn OAuth2 API v2", - "main": "./lib", - "repository": { - "type": "git", - "url": "https://github.com/auth0/passport-linkedin-oauth2" - }, - "scripts": { - "test": "mocha -t 5000" - }, - "devDependencies": { - "ejs": "^2.6.1", - "express": "^3.x.x", - "mocha": "*", - "morgan": "^1.9.1", - "nock": "^13.3.1", - "passport": "^0.4.0", - "should": "^13.2.3" - }, - "keywords": [ - "passport", - "linkedin", - "auth0" - ], - "author": "Auth0", - "contributors": [ - "Eugenio Pace ", - "Joshua Schell ", - "Jose Romaniello ", - "Tom Spencer ", - "Sokratis Vidros " - ], - "license": "MIT", - "dependencies": { - "passport-oauth2": "1.x.x" - }, - "directories": { - "example": "example", - "lib": "lib", - "test": "test" - }, - "engines": { - "node": ">= 16" - } + "name": "passport-linkedin-oauth2", + "version": "3.0.0-pre.1", + "description": "Passport for LinkedIn OAuth2 API v2", + "main": "./lib", + "repository": { + "type": "git", + "url": "https://github.com/QSXL/passport-linkedin-oauth2.git" + }, + "scripts": { + "test": "mocha -t 5000" + }, + "devDependencies": { + "ejs": "^2.6.1", + "express": "^3.x.x", + "mocha": "*", + "morgan": "^1.9.1", + "nock": "^13.3.1", + "passport": "^0.4.0", + "should": "^13.2.3" + }, + "keywords": [ + "passport", + "linkedin", + "auth0" + ], + "author": "Auth0", + "contributors": [ + "Eugenio Pace ", + "Joshua Schell ", + "Jose Romaniello ", + "Tom Spencer ", + "Sokratis Vidros " + ], + "license": "MIT", + "dependencies": { + "passport-oauth2": "1.x.x" + }, + "directories": { + "example": "example", + "lib": "lib", + "test": "test" + }, + "engines": { + "node": ">= 16" + } }