Skip to content

Commit

Permalink
testing release tag workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Emily Rodriguez committed Feb 17, 2022
1 parent 0e5d3f7 commit deeff3a
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "20:00"
timezone: America/New_York
open-pull-requests-limit: 99
ignore:
- dependency-name: mitre/saf
22 changes: 22 additions & 0 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
push:
tags:
- "v*.*.*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: Get Release Notes
run: |
echo "$(git tag -l --sort=taggerdate --format="%(contents:subject)" | tail -n 1)" > RELEASE_NOTES
echo "This release corresponds to the latest of the same major version for the SAF CLI." >> RELEASE_NOTES
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: RELEASE_NOTES
draft: true
19 changes: 19 additions & 0 deletions .github/workflows/update-release-tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish

on:
release:
types: [published, edited]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.release.tag_name }}
- name: Install deps and build
run: npm ci && npm run build
- uses: JasonEtco/build-and-tag-action@v1
env:
GITHUB_TOKEN: ${{ github.token }}

0 comments on commit deeff3a

Please sign in to comment.