-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cacc099
commit 8e5330d
Showing
3 changed files
with
58 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Publish | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Введите версию x.x.x' | ||
required: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check permissions | ||
if: ${{ contains(fromJSON('["reme3d2y","Valeri8888","SiebenSieben","fulcanellee"]'), github.actor) == false }} | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
core.setFailed("you don't have permission to run this workflow!"); | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Install dependencies | ||
run: yarn --pure-lockfile | ||
|
||
- name: Build app | ||
run: yarn build | ||
|
||
- name: Set version | ||
if: success() | ||
run: | | ||
git config user.name core-ds-bot | ||
git config user.email [email protected] | ||
yarn --new-version version ${{ github.event.inputs.version }} | ||
git push | ||
- name: Publish | ||
if: success() | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Push tag | ||
if: success() | ||
run: git push origin --tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "react-canvas-pattern-lock", | ||
"name": "@alfalab/react-canvas-pattern-lock", | ||
"version": "2.0.6", | ||
"description": "Android's react pattern lock", | ||
"main": "dist/index.js", | ||
|
@@ -21,11 +21,9 @@ | |
"pattern", | ||
"lock" | ||
], | ||
"author": "Lacronts <[email protected]>", | ||
"homepage": "https://github.com/Lacronts/react-canvas-pattern-lock#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/Lacronts/react-canvas-pattern-lock.git" | ||
"url": "git+https://github.com/core-ds/react-canvas-pattern-lock.git" | ||
}, | ||
"dependencies": { | ||
"react-merge-refs": "^1.1.0", | ||
|