Skip to content

Commit

Permalink
fix failing workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
samueltuyizere committed Dec 26, 2024
1 parent 5621e65 commit 852bafd
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20

Expand All @@ -34,10 +34,10 @@ jobs:
needs: lint
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20

Expand All @@ -48,7 +48,7 @@ jobs:
run: npm run build

- name: Upload build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build
path: ./dist
Expand All @@ -58,15 +58,18 @@ jobs:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/master'
permissions:
contents: read
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20

registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm install

Expand All @@ -76,4 +79,4 @@ jobs:
- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish
run: npm publish --provenance --access public

0 comments on commit 852bafd

Please sign in to comment.