Skip to content

Commit

Permalink
fix: add test for _default
Browse files Browse the repository at this point in the history
  • Loading branch information
simenandre committed Feb 8, 2021
1 parent aec0056 commit a528f5e
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release

on:
pull_request:
branches:
- master
push:
branches:
- master
- next
- next-major
- alpha
- beta

jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
id: semantic
with:
extra_plugins: |
@semantic-release/git
@semantic-release/changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Push updates to branch for major version
if: steps.semantic.outputs.new_release_published == 'true'
run: "git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/v${{steps.semantic.outputs.new_release_major_version}}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,16 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: ./
id: test1
with:
key: something
map: |
'*': dev
'.*': This means the Regex works
- run: echo ${{ output.test1.out }}
- uses: ./
id: test2
with:
key: something
map: |
'_default': Default works!
- run: echo ${{ output.test2.out }}
26 changes: 26 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"branches": ["+([0-9])?(.{+([0-9]),x}).x", "main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "docs/CHANGELOG.md"
}
],
[
"@semantic-release/github",
{
"assets": "pack/*.tgz"
}
],
[
"@semantic-release/git",
{
"assets": ["docs/CHANGELOG.md", "package.json", "package-lock.json"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}

0 comments on commit a528f5e

Please sign in to comment.