mirror of
https://github.com/chenasraf/massarg.git
synced 2026-05-18 01:39:05 +00:00
ci: update actions
This commit is contained in:
17
.github/workflows/main.yml
vendored
17
.github/workflows/main.yml
vendored
@@ -2,7 +2,7 @@ name: Releases
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master, develop]
|
||||
branches: [ master, develop ]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -11,23 +11,24 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: "12.x"
|
||||
- run: yarn install --frozen-lockfile
|
||||
- run: yarn test
|
||||
- run: yarn build
|
||||
node-version: '18.x'
|
||||
- run: npm i -g pnpm
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: pnpm test
|
||||
- run: pnpm build
|
||||
- run: yarn pack --filename=release.tgz
|
||||
- name: Publish on NPM
|
||||
if: "!contains(github.event.head_commit.message, '[skip publish]')"
|
||||
uses: JS-DevTools/npm-publish@v1
|
||||
with:
|
||||
package: build/package.json
|
||||
token: "${{ secrets.NPM_TOKEN }}"
|
||||
token: '${{ secrets.NPM_TOKEN }}'
|
||||
- uses: Klemensas/action-autotag@stable
|
||||
if: "!contains(github.event.head_commit.message, '[skip publish]')"
|
||||
id: update_tag
|
||||
with:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
tag_prefix: "v"
|
||||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
||||
tag_prefix: 'v'
|
||||
- name: Create Release
|
||||
if: "!contains(github.event.head_commit.message, '[skip publish]') && steps.update_tag.outputs.tagname"
|
||||
uses: actions/create-release@v1
|
||||
|
||||
11
.github/workflows/pull_requests.yml
vendored
11
.github/workflows/pull_requests.yml
vendored
@@ -2,7 +2,7 @@ name: Pull Requests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [master, develop]
|
||||
branches: [ master, develop ]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -11,7 +11,8 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: "12.x"
|
||||
- run: yarn install --frozen-lockfile
|
||||
- run: yarn test
|
||||
- run: yarn build
|
||||
node-version: '18.x'
|
||||
- run: npm i -g pnpm
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: pnpm test
|
||||
- run: pnpm build
|
||||
|
||||
Reference in New Issue
Block a user