Skip to content

Merge pull request #62 from abirismyname/abirismyname-patch-4 #55

Merge pull request #62 from abirismyname/abirismyname-patch-4

Merge pull request #62 from abirismyname/abirismyname-patch-4 #55

Workflow file for this run

name: release v1
on:
push:
branches:
- main
# Trigger release manually
workflow_dispatch:
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- name: Ensure v1.x exists
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
export SHA=$( gh api \
/repos/$GITHUB_REPOSITORY/git/refs/heads/main \
| jq --raw-output '.object.sha' )
gh api /repos/$GITHUB_REPOSITORY/git/refs \
--field sha="$SHA" \
--field ref="refs/heads/v1.x"
- uses: actions/checkout@v2
with:
token: ${{ secrets.PAT }}
- uses: actions/setup-node@v1
- run: npm ci
- run: npm run build
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Add dist/index.js
file_pattern: dist/*.js
tagging_message: 'v1.1.0'
push_options: '--force'
- uses: actions/upload-artifact@v2
with:
name: build
path: dist/index.js