Skip to content

Commit

Permalink
ci(dry-run): add test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Feb 18, 2024
1 parent c7bdd2e commit a90e044
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/dry-run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build

on:
workflow_dispatch:

jobs:
dry-run:
runs-on: ubuntu-latest

steps:
- name: Install archive tools
run: sudo apt install zip

- name: Checkout source code
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.repository.default_branch }}

- name: Install pnpm
uses: pnpm/action-setup@v2.4.0
with:
version: 8

- name: Get variables
id: get_vars
run: |
echo '::set-output name=SHORT_SHA::$(git rev-parse --short HEAD)'
echo '::set-output name=DATE::$(date +'%D')'
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
cache-dependency-path: 'pnpm-lock.yaml'

- name: Install dependencies
run: pnpm i --frozen-lockfile

- name: Bump package version
run: |
npm pack --dry-run
env:
CI: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a90e044

Please sign in to comment.