Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add provenance #80

Merged
merged 1 commit into from May 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/publish-latest.yml
Expand Up @@ -4,6 +4,9 @@ on:
release:
types: [created]

permissions:
id-token: write

jobs:
publish:
if: "!github.event.release.prerelease"
Expand All @@ -19,6 +22,6 @@ jobs:
cache: "yarn"
- run: yarn install
- run: yarn build
- run: npm publish --tag=latest
- run: npm publish --provenance --tag=latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 4 additions & 1 deletion .github/workflows/publish-next.yml
Expand Up @@ -4,6 +4,9 @@ on:
release:
types: [created]

permissions:
id-token: write

jobs:
publish:
if: "github.event.release.prerelease"
Expand All @@ -19,6 +22,6 @@ jobs:
cache: "yarn"
- run: yarn install
- run: yarn build
- run: npm publish --tag=next
- run: npm publish --provenance --tag=next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "gatsby-plugin-fix-fouc",
"version": "1.0.2",
"version": "1.0.3-beta.0",
"description": "Gatsby Plugin Fix FOUC is a plugin that solves flicker of unstyled content",
"main": "index.js",
"types": "index.d.ts",
Expand Down