Skip to content

Commit

Permalink
chore: updated node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
agliga committed Nov 1, 2024
1 parent d53c7f6 commit 2a6b485
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,24 +53,26 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v1


# Deployment job
deploy:
if: github.ref == 'refs/heads/master'
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
if: github.ref == 'refs/heads/master'
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
pages: write
id-token: write
contents: write
packages: write
pull-requests: write
issues: read
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
release:
# Sets permissions of the GITHUB_TOKEN to allow opening release PR
permissions:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"installMarkoV5": "npm i marko@5 @marko/compiler@5 --force",
"installMarkoV4": "npm remove @marko/compiler && npm i marko@4 --force",
"prepublishOnly": "node scripts/postpublish && node scripts/prepublish",
"version": " npm run importSVG && prettier . --write --log-level=warn && npm run build:readme && git add -A src && changeset version && npm i --package-lock-only",
"version": "npm run importSVG && prettier . --write --log-level=warn && npm run build:readme && git add -A src && changeset version && npm i --package-lock-only",
"postpublish": "node scripts/postpublish",
"start": "storybook dev -p 6006",
"start:prod": "NODE_ENV=production npm start",
Expand Down

0 comments on commit 2a6b485

Please sign in to comment.