Skip to content

Commit

Permalink
Update workflows (#460)
Browse files Browse the repository at this point in the history
* workflows cleanup

* update release script
  • Loading branch information
Tymek committed Jun 9, 2023
1 parent 764b71c commit fc233db
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 81 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build
name: Build and test

on:
pull_request:
push:
branches:
- main
Expand All @@ -10,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 12.x, 14.x, 16.x, 18.x, 19.x ]
node-version: [16.x, 18.x, 20.x]

steps:
- name: Checkout
Expand Down
30 changes: 0 additions & 30 deletions .github/workflows/prs.yaml

This file was deleted.

44 changes: 21 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
name: 'Release Node Client'
name: 🚀 Release

on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
version:
description: New version semver
required: true
type: string
tag:
description: NPM tag
required: false
type: string
default: 'latest'

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Publish to npm
uses: actions/setup-node@v3
with:
node-version: lts/*
registry-url: 'https://registry.npmjs.org'
cache: yarn
- run: |
yarn install --frozen-lockfile
- run: |
TAG=$(echo $GITHUB_REF_NAME | grep -oP '^v\d+\.\d+\.\d+-?\K(\w+)?')
npm publish --tag ${TAG:-latest}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
from-template:
uses: Unleash/.github/.github/workflows/npm-release.yml@v1.1.0
with:
version: ${{ github.event.inputs.version }}
tag: ${{ github.event.inputs.tag }}
secrets:
GH_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_ACCESS_TOKEN: ${{ secrets.NPM_TOKEN }}
26 changes: 0 additions & 26 deletions .github/workflows/release_changelog.yaml

This file was deleted.

0 comments on commit fc233db

Please sign in to comment.