Skip to content

Commit

Permalink
feat: added release-please and fixed hydration error
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Milfred committed Jan 16, 2024
1 parent e7395c2 commit 6aab5b0
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 44 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/release-package.yml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Release Please and Publish

on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write
packages: write

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
# The logic below handles the package building:
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v4
with:
node-version: 18.18
registry-url: 'https://npm.pkg.github.com'
if: ${{ steps.release.outputs.release_created }}
- run: npm install
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
- run: npm ci
if: ${{ steps.release.outputs.release_created }}
- run: npm test
if: ${{ steps.release.outputs.release_created }}
# The logic below handles the package building:
- run: npm ci
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
5 changes: 4 additions & 1 deletion components/FetchForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
const originalAttrs = useAttrs();
const props = defineProps({
action: String,
enctype: String,
enctype: {
type: String,
default: 'application/x-www-form-urlencoded',
},
method: String,
// The options to pass to the fetch call
Expand Down
13 changes: 13 additions & 0 deletions release-please-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"packages": {
".": {
"changelog-path": "CHANGELOG.md",
"release-type": "node",
"bump-minor-pre-major": false,
"bump-patch-for-minor-pre-major": false,
"draft": false,
"prerelease": false
}
},
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}

0 comments on commit 6aab5b0

Please sign in to comment.