Skip to content

Commit

Permalink
[Release] version 0.2.14-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
saltict committed Sep 14, 2023
1 parent 39c417e commit 63b03fd
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 4 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Publish Build
on:
push:
branches:
- master
- dev

jobs:
master:
if: "startsWith(github.event.head_commit.message, '[Release]')"
runs-on: ubuntu-22.04
name: Build and publish
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_AUTOMATION_TOKEN }}

- name: Set input data
id: input_data
run: |
if [[ ${{ github.ref }} == 'refs/heads/master' ]]; then
echo "::set-output name=target::latest"
else
echo "::set-output name=target::beta"
fi
- name: Install dependencies and build
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
yarn install
yarn publish:${{ steps.input_data.outputs.target }}
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: Github-Bot
author_email: [email protected]
message: 'Update data after publish:${{ steps.input_data.outputs.target }}'

- name: Notify to Discord
uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
username: Chain List Notifier
title: ${{ github.workflow }}
description: |
The deployment has been completed.
Commit message: ${{ github.event.head_commit.message }}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
},
"sideEffects": false,
"type": "module",
"version": "0.2.14-beta.0",
"version": "0.2.14-beta.1",
"versions": {
"git": "0.2.14-beta.0",
"npm": "0.2.14-beta.0"
"git": "0.2.14-beta.1",
"npm": "0.2.14-beta.1"
},
"workspaces": [
"packages/*"
Expand Down
2 changes: 1 addition & 1 deletion packages/chain-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "0.2.14-beta.0",
"version": "0.2.14-beta.1",
"main": "index.js",
"dependencies": {
"@polkadot/dev": "0.67.167",
Expand Down

0 comments on commit 63b03fd

Please sign in to comment.