Skip to content

Commit

Permalink
Add release workflow (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
finn-orsini authored Jan 26, 2022
1 parent 5f32c1e commit 87270bc
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
cache: yarn
# In CI, yarn 2 automatically fails CI if lockfile will change
- name: Run Install
run: yarn install
run: yarn

test:
name: Run Tests
Expand All @@ -25,7 +25,7 @@ jobs:
node-version: 14.x
cache: yarn
- name: install
run: yarn install --immutable
run: yarn --immutable
- name: test
run: yarn test

Expand All @@ -39,7 +39,7 @@ jobs:
node-version: 14.x
cache: yarn
- name: install
run: yarn install --immutable
run: yarn --immutable
- name: lint
run: yarn lint

Expand All @@ -53,6 +53,6 @@ jobs:
node-version: 14.x
cache: yarn
- name: install
run: yarn install --immutable
run: yarn --immutable
- name: format-check
run: yarn format:check
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Workflow runs after release is published in GH UI
# Currently no automated version checking
# Be sure to bump pjson version & changelog before creating a new release

name: "Publish After Release"
on:
release:
types: [released]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14.x
cache: yarn
- run: yarn
- run: yarn test
- run: npm publish
env:
NPM_REGISTRY_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.0.0] - 2022-01-25

### Added

- Initial release of deptrics beta API

0 comments on commit 87270bc

Please sign in to comment.