mirror of
https://github.com/actions/javascript-action.git
synced 2026-01-14 10:01:16 +08:00
Add basic release management
This commit is contained in:
20
.github/workflows/check-dist.yml
vendored
20
.github/workflows/check-dist.yml
vendored
@@ -9,15 +9,33 @@
|
||||
# expected from the build.
|
||||
name: Check Transpiled JavaScript
|
||||
|
||||
# This workflow will only run on PRs targeting `main` and direct pushes to
|
||||
# `main`. It will only run if the listed files/paths are modified (e.g. there is
|
||||
# no need to run this workflow when documentation files are modified).
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- src/**
|
||||
- .node-version
|
||||
- .prettierrc.json
|
||||
- package.json
|
||||
- package-lock.json
|
||||
- tsconfig.json
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- src/**
|
||||
- .node-version
|
||||
- .prettierrc.json
|
||||
- package.json
|
||||
- package-lock.json
|
||||
- tsconfig.json
|
||||
|
||||
permissions:
|
||||
checks: write
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
@@ -47,7 +65,7 @@ jobs:
|
||||
|
||||
# This will fail the workflow if the `dist/` directory is different than
|
||||
# expected.
|
||||
- name: Compare Directories
|
||||
- name: Compare Expected and Actual Directories
|
||||
id: diff
|
||||
run: |
|
||||
if [ ! -d dist/ ]; then
|
||||
|
||||
Reference in New Issue
Block a user