Skip to content
This repository has been archived by the owner on Nov 17, 2024. It is now read-only.

Commit

Permalink
ci: replace npm ci with yarn install --immutable, clean up package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
El-Fitz committed Aug 22, 2024
1 parent 13a421e commit 9516b17
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 14 deletions.
39 changes: 33 additions & 6 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
name: Node.js Package
name: Publish

on:
release:
types: [created]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npx prettier . --check

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- run: npm ci
- run: npm test
node-version: 22
- run: yarn install --immutable --immutable-cache --check-cache

publish-gpr:
needs: build
Expand All @@ -25,9 +33,28 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 22
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: yarn install --immutable --immutable-cache --check-cache
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://npm.pkg.github.com/
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: "https://registry.npmjs.org"
scope: '@csbnlu'
- run: yarn install --immutable --immutable-cache --check-cache
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
13 changes: 5 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
"name": "@csbnlu/jwks-aws-pulumi",
"name": "@csbnlu/jawks-pulumi",
"version": "0.0.1",
"publishConfig": {
"@csbnlu:registry": "https://npm.pkg.github.com"
},
"devDependencies": {
"@pulumi/aws": "^6.49.1",
"@pulumi/aws-apigateway": "^2.6.0",
"@pulumi/pulumi": "^3.129.0",
"@types/aws-lambda": "^8.10.143",
"prettier": "^3.3.3"
},
Expand All @@ -15,11 +13,10 @@
"@aws-sdk/client-s3": "^3.635.0",
"@aws-sdk/client-secrets-manager": "^3.635.0",
"@aws-sdk/lib-dynamodb": "^3.632.0",
"@pulumi/aws": "^6.0.0",
"@pulumi/aws-apigateway": "^2.0.0",
"@pulumi/pulumi": "^3.113.0",
"@pulumi/aws": "^6.49.1",
"@pulumi/aws-apigateway": "^2.6.0",
"@pulumi/pulumi": "^3.129.0",
"aws-lambda": "^1.0.7",
"aws-sdk": "^2.1678.0",
"jose": "^5.7.0",
"zod": "^3.23.8"
}
Expand Down

0 comments on commit 9516b17

Please sign in to comment.