revanced-integrations/.github/workflows/release.yml

44 lines
994 B
YAML
Raw Normal View History

name: Release
on:
2022-06-24 00:55:50 +02:00
workflow_dispatch:
push:
branches:
- main
2022-07-02 06:18:52 +02:00
- dev
pull_request:
branches:
- main
2022-07-02 06:18:52 +02:00
- dev
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
2023-02-13 14:56:56 +01:00
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.11.0
- name: Checkout
uses: actions/checkout@v3
2023-01-14 03:15:59 +01:00
with:
# Make sure the release step uses its own credentials:
# https://github.com/cycjimmy/semantic-release-action#private-packages
2023-01-14 03:20:37 +01:00
persist-credentials: false
fetch-depth: 0
2022-12-08 20:32:28 +01:00
- name: Set up JDK
uses: actions/setup-java@v3
with:
2022-12-08 20:32:28 +01:00
java-version: '17'
distribution: 'zulu'
2022-07-02 06:18:52 +02:00
- name: Setup Node.js
uses: actions/setup-node@v3
2022-07-02 06:18:52 +02:00
with:
2023-02-13 04:45:17 +01:00
node-version: "18"
2022-12-08 21:11:21 +01:00
cache: 'npm'
2022-07-02 06:18:52 +02:00
- name: Setup semantic-release
run: npm install
2022-07-02 06:18:52 +02:00
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.REPOSITORY_PUSH_ACCESS }}
run: npm exec semantic-release