Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
yamilmedina committed Apr 30, 2024
2 parents 47f2da5 + daffe66 commit a181243
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/pr-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: PR Validation

on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

# Set up NPM and deps
- name: Set up NPM
run: npm ci

# Do a build
- name: Run Build
run: npm run build

# Check whether the compiled library changed
- name: Check Build Updated
uses: tj-actions/verify-changed-files@v19
id: verify-built-lib
with:
files: dist/index.js

# If it did change, the authro forgot to build. Fail the action
- name: Verify Build Updated
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: exit 1
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }} # checkout the correct branch name
fetch-depth: 0 # fetch the whole repo history
- name: Git Version
uses: codacy/git-version@2.5.0
uses: codacy/git-version@2.8.0
id: version
with:
release-branch: main
- name: Create Release
uses: ncipollo/release-action@v1.8.6
uses: ncipollo/release-action@v1.14.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down

0 comments on commit a181243

Please sign in to comment.