Skip to content

Commit

Permalink
Bump dependencies by "Check updates #2" (#8)
Browse files Browse the repository at this point in the history
* Bump dependencies by "Check updates #2"

* Add Create release pipeline

Co-authored-by: fabasoad <[email protected]>
  • Loading branch information
github-actions[bot] and fabasoad authored Dec 27, 2020
1 parent af06573 commit e074100
Show file tree
Hide file tree
Showing 4 changed files with 143 additions and 96 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
name: Create release

on:
push:
branches:
- main

jobs:
create_release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
ref: ${{ github.ref }}
- name: Get commits since last release
id: changes
uses: simbo/changes-since-last-release-action@v1
- name: Get latest version
id: substring
run: |
ver=$(echo "${{ steps.changes.outputs.last-tag }}" | cut -c2-)
echo '::set-output name=version::'$ver
- name: Increase version
id: semver
uses: matt-FFFFFF/[email protected]
with:
semver-input: ${{ steps.substring.outputs.version }}
increment: p
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.semver.outputs.semver }}
release_name: v${{ steps.semver.outputs.semver }}
body: |
# Changes
${{ steps.changes.outputs.log }}
draft: false
prerelease: false
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
"liberapay",
"linguatools",
"mymemory",
"semver",
"simbo",
"vercel"
],
"editor.rulers": [ 80 ]
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "translation-action",
"version": "1.4.1",
"version": "1.4.2",
"description": "This GitHub action translates any text from any language to any language.",
"main": "dist/index.js",
"scripts": {
Expand Down Expand Up @@ -34,10 +34,10 @@
"yandex-translate": "2.1.3"
},
"devDependencies": {
"@types/node-fetch": "2.5.7",
"@typescript-eslint/eslint-plugin": "4.10.0",
"@typescript-eslint/parser": "4.10.0",
"@types/jest": "26.0.19",
"@types/node-fetch": "2.5.7",
"@typescript-eslint/eslint-plugin": "4.11.0",
"@typescript-eslint/parser": "4.11.0",
"@vercel/ncc": "0.26.1",
"dotenv": "8.2.0",
"eslint": "7.16.0",
Expand All @@ -48,7 +48,7 @@
"jest-circus": "26.6.3",
"mocha-param": "2.0.1",
"nyc": "15.1.0",
"snyk": "1.437.2",
"snyk": "1.437.3",
"ts-jest": "26.4.4",
"typescript": "4.1.3"
},
Expand Down
Loading

0 comments on commit e074100

Please sign in to comment.