Skip to content

Commit

Permalink
"Update GitHub workflows to newer versions"
Browse files Browse the repository at this point in the history
This commit updates the GitHub workflows to use newer versions of checkout, setup-node, npm-publish and pnpm actions. The install command is changed from "npm install --force" to "pnpm install --frozen-lockfile" to manage dependencies
  • Loading branch information
pavankjadda committed Nov 6, 2023
1 parent c9cae3a commit a0723e6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: pnpm/action-setup@v2.2.2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 7
- uses: actions/setup-node@v2
version: latest
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Dependencies
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/npm_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Dependencies
run: npm install --force
run: pnpm install --frozen-lockfile
- name: Build project
run: npm run build react-cookie-service
run: pnpm build react-cookie-service
- name: Run Tests
run: npm test react-cookie-service
run: pnpm test react-cookie-service
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: libs/react-cookie-service/package.json
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/npm_publish_js_cookie_service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Dependencies
run: npm install --force
run: pnpm install --frozen-lockfile
- name: Build project
run: npm run build js-cookie-service
run: pnpm build js-cookie-service
- name: Run Tests
run: npm test js-cookie-service
run: pnpm test js-cookie-service
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: libs/js-cookie-service/package.json
Expand Down

0 comments on commit a0723e6

Please sign in to comment.