Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release tagging #186

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 0 additions & 50 deletions .github/workflows/build.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: pull_requests

on: [pull_request]

jobs:
test:
runs-on: ubuntu-latest
name: Test and Build
steps:
- uses: actions/checkout@v2
- name: Use Node.js 18.x
uses: actions/setup-node@v1
with:
node-version: 18.x
- name: install, lint, test, build
run: |
DEBUG=true yarn install --frozen-lockfile
yarn run lint
yarn test
yarn build
42 changes: 42 additions & 0 deletions .github/workflows/release_tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: release_tags

on:
push:
tags:
- 'v*.*.*'

jobs:
test:
runs-on: ubuntu-latest
name: Test and Build
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: install, lint, test, build
run: |
DEBUG=true yarn install --frozen-lockfile
yarn run lint
yarn test
yarn build

publish:
name: Publish
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: install
run: yarn install --frozen-lockfile

- name: git-tag-name
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: git-tag-to-package-version
run: npm version ${{ env.RELEASE_VERSION }} --no-git-tag-version
Loading