Skip to content

Commit

Permalink
feat!: v1 and release-please
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Milfred committed Apr 24, 2024
1 parent 3769fea commit b600575
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 46 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/release-package.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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

- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}

- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
if: ${{ steps.release.outputs.release_created }}

- run: yarn
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ steps.release.outputs.release_created }}

- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ steps.release.outputs.release_created }}
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

Vue accordion component is a list of headers that hide or reveal additional content when selected/opened. that contains the AccordionGroup as the wrapper of the accordion, AccordionHeader as the header of each panel and the AccordionPanel for the panels that has two states of collapsed and expanded.

- https://dev-8481od-fe.testserver.nu/da/bo-og-leve/et-godt-sted-at-bo/byer-og-landsbyer/
- https://dev-8247sl-fe.testserver.nu/da/limbo-testomraade/borgerdk-accordion/

## Using the components

Import and register the AccordionGroup, AccordionHeader, AccordionPanel component make sure that the AccordionHeader and AccordionPanel are wrapped by AccordionGroup like you see below but it doesn't need to be direct descendents:
Expand Down
13 changes: 13 additions & 0 deletions release-please-config.json
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 b600575

Please sign in to comment.