feat: allow return awaits (#43) #12
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: CD | |
on: | |
push: | |
tags: | |
- "@kbotdev/*@[0-9]+.[0-9]+.[0-9]+" | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'kbot-discord' | |
permissions: | |
contents: write | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Create archive | |
uses: thedoctor0/zip-release@0.7.6 | |
with: | |
type: "zip" | |
filename: "release.zip" | |
- name: Create release | |
uses: ncipollo/release-action@v1.13.0 | |
with: | |
artifacts: "release.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'kbot-discord' | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- package: "@kbotdev/eslint-config" | |
folder: "eslint-config" | |
- package: "@kbotdev/prettier-config" | |
folder: "prettier-config" | |
- package: "@kbotdev/ts-config" | |
folder: "ts-config" | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Set up NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: yarn | |
- name: Install dependencies | |
run: yarn --immutable | |
- name: Run build | |
run: yarn build | |
- name: Publish package | |
run: yarn workspace ${{ matrix.package }} npm publish --access public | |
env: | |
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} |