chore: echo helo world #16 #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release metric-gardener | |
on: | |
push: | |
tags: 'mg-*.*.*' | |
jobs: | |
build_project: | |
name: Build Project | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Build metric-gardener | |
env: | |
NODE_OPTIONS: "--max_old_space_size=4096" | |
run: | | |
npm ci | |
npm run build | |
npm run test | |
npm pack | |
echo "hello world" | |
echo "hello ${{ secrets.NPM_TOKEN }}" | |
- name: Add Changelog Entries to Release | |
uses: rasmus-saks/[email protected] | |
with: | |
github-token: '${{ secrets.GITHUB_TOKEN }}' | |
path: 'CHANGELOG.md' | |
title-template: 'metric-gardener release {version}' | |
tag-template: 'mg-{version}' | |
- name: Publish npm package | |
uses: JS-DevTools/[email protected] | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
package: ./package.json | |
- name: Set env | |
run: | | |
fullVersion="${GITHUB_REF#refs/*/}" | |
echo "RELEASE_VERSION=${fullVersion:3}" >> $GITHUB_ENV | |
- name: Upload Release Files to tagged release | |
uses: alexellis/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
asset_paths: '["metric-gardener-${{ env.RELEASE_VERSION }}.tgz"]' | |