Skip to content

Commit

Permalink
Merge pull request #446 from DTS-STN/feat/testing-123
Browse files Browse the repository at this point in the history
Feat/testing 123
  • Loading branch information
zeddotes authored Oct 15, 2022
2 parents 4dd86e1 + d2cd075 commit 5d8a7c4
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 39 deletions.
File renamed without changes.
67 changes: 28 additions & 39 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Pre-release
on:
push:
branches:
- release
- main
pull_request:
types:
- closed
Expand All @@ -15,45 +15,34 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Node
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
# install dependencies
- name: Install 🔧
run: npm ci
# test components
- name: Test 🧪
run: npm run test
env:
CI: true
# run build and create a tarball from the package
- name: Create Tarball
run: npm pack
- name: Find Comment
uses: peter-evans/find-comment@v1
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: |
Storybooks Link For Branch
https://dts-stn.github.io/Service-Canada-Design-System/${{ steps.extract_branch.outputs.branch }}
- name: Create or update comment # comment in pull request storybooks link
uses: peter-evans/create-or-update-comment@v1
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
Storybooks Link For Branch
https://dts-stn.github.io/Service-Canada-Design-System/${{ steps.extract_branch.outputs.branch }}
# # This is the action in this repo! 👇
# # Note we set an `id` called `release`. We'll use that later...
# - name: Validate and extract release information
# id: release
# uses: manovotny/github-releases-for-automated-package-publishing-action@v1.0.0
# - name: Node
# uses: actions/setup-node@v3
# with:
# node-version: 16
# registry-url: 'https://registry.npmjs.org'
# # install dependencies
# - name: Install 🔧
# run: npm ci
# # test components
# # - name: Test 🧪
# # run: npm run test
# # env:
# # CI: true
# - name: Publish the package
# run: npm dist-tag add next && npm publish --tag next
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN_DTSSTN_LOCAL }}
- uses: google-github-actions/release-please-action@v3
id: ga
with:
release-type: node
package-name: 'dts-stn/service-canada-design-system'
package-name: '@dts-stn/service-canada-design-system'
changelog-types: '[{"type":"feat","section":"Features"},{"type":"fix","section":"Bug Fixes"},{"type":"perf","section":"Performance Improvements"},{"type":"test","section":"Tests"},{"type":"docs","section":"Documentation"},{"type":"build","section":"Build System"},{"type":"ops","section":"CI/CD Changes"},{"type":"chore","section":"Miscellaneous Chores"},{"type":"refactor","section":"Refactored"}]'
default-branch: main
prerelease: true
extra-files: |
*.tgz
commit-search-depth: 32
release-search-depth: 3
prerelease: true

0 comments on commit 5d8a7c4

Please sign in to comment.