Skip to content

chore: no longer execute prettier twice over all files #162

chore: no longer execute prettier twice over all files

chore: no longer execute prettier twice over all files #162

Workflow file for this run

# Copyright (C) 2022, TomTom (http://tomtom.com).
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
name: Release and Deploy GitHub Action
concurrency: deployment
on:
push:
branches:
- master
jobs:
github-release:
name: Release Action
outputs:
next-version: ${{ steps.commisery.outputs.next-version }}
runs-on: ubuntu-latest
steps:
- name: Generate version
id: commisery
uses: tomtom-international/commisery-action/bump@v2
with:
create-release: true
token: ${{ github.token }}
version-prefix: v
release-packages:
name: Release Packages
runs-on: ubuntu-latest
needs: github-release
if: needs.github-release.outputs.next-version != ''
steps:
- uses: actions/checkout@v3
- name: Set up Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install dependencies
run: npm ci
- name: Rebuild the dist/ directory
run: npm run build
- name: Package the CLI
run: npm run package
- uses: AButler/[email protected]
with:
files: 'bin/*'
repo-token: ${{ github.token }}
release-tag: ${{ needs.github-release.outputs.next-version }}
release-action:
runs-on: ubuntu-latest
needs: github-release
if: needs.github-release.outputs.next-version != ''
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ needs.github-release.outputs.next-version }}
- name: Update the ${{ needs.github-release.outputs.next-version }} tag
uses: actions/[email protected]
with:
source-tag: ${{ needs.github-release.outputs.next-version }}