8000 Fix release process by jonnydgreen · Pull Request #10 · nifty-lil-tricks/monitoring · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix release process #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 34 additions & 9 deletions .github/workflows/main.yml → .github/workflows/ci.yml
< 8000 tr data-hunk="5d5da366050f171b525e981202123fac8f3ca6b355f599f5466f58557e5c1856" class="show-top-border">
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: ['18.x', '20.x']
node-version: ["18.x", "20.x"]
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
Expand Down Expand Up @@ -50,26 +50,51 @@ jobs:
with:
directory: ./.tap/report

- name: Upload build artifact
uses: actions/upload-artifact@v3
with:
name: build
path: build
retention-days: 1

release:
runs-on: ubuntu-latest
needs: [test]
if: |
github.repository == 'jonnydgreen/nifty-lil-tricks-testing' &&
github.ref == 'refs/heads/main'

steps:
- name: Clone repository
uses: actions/checkout@v3

- name: Download build artifact
uses: actions/download-artifact@v3
with:
name: build
path: build

- name: Set up Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x

- name: Set up Node.js
uses: actions/setup-node@v3

- name: Create app token
uses: actions/create-github-app-token@v1
id: app-token
if: |
github.repository == 'jonnydgreen/nifty-lil-tricks-monitoring' &&
github.ref == 'refs/heads/main'
with:
app-id: ${{ secrets.JONNYDGREEN_BOT_APP_ID }}
private-key: ${{ secrets.JONNYDGREEN_BOT_PRIVATE_KEY }}

- name: Release if version change
shell: bash
if: |
github.repository == 'jonnydgreen/nifty-lil-tricks-monitoring' &&
github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: ./_tools/release.ts


automerge:
needs: test
Expand Down
0