Skip to content
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

Readme update #2

Merged
merged 3 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
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
28 changes: 28 additions & 0 deletions .github/workflows/check-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
pull_request:
branches:
- main

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: setup node
uses: actions/setup-node@main
with:
node-version-file: ".nvmrc"
- name: Install Application
run: npm clean-install
- name: Run Unit Tests
run: npm run test
- name: Read Version
id: getversion
run: echo "::set-output name=version::$(cat VERSION)"
- name: Validate Version remote
uses: wholestax/create-aliased-release@main
with:
validate-only: true
version: ${{ steps.getversion.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34 changes: 34 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
push:
branches:
- main

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: setup node
uses: actions/setup-node@main
with:
node-version-file: ".nvmrc"
- name: Install Application
run: npm clean-install
- name: Run Unit Tests
run: npm run test
- name: Read Version
id: getversion
run: echo "::set-output name=version::$(cat VERSION)"
- name: Create Release Archive
uses: vimtor/action-zip@v1.2
with:
files: src/redirect.js
dest: release-${{ steps.getversion.outputs.version }}.zip
- name: Validate Version
uses: wholestax/create-aliased-release@main
with:
validate-only: false
version: ${{ steps.getversion.outputs.version }}
files: release-${{ steps.getversion.outputs.version }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
branches:
- main
- none

jobs:
release-on-push:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
on:
pull_request_target:
types: [opened, labeled, unlabeled, synchronize]
types: []

jobs:
validate-release-label:
name:
runs-on: ubuntu-latest
steps:
- uses: jesusvasquez333/verify-pr-label-action@v1.4.0
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/versioning.yml

This file was deleted.

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.11.0
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.2
Loading
Loading