Skip to content

Commit

Permalink
Fix release yml (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrai committed Oct 19, 2020
1 parent 41206a4 commit 55e71ee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 20
- run: npm install
- run: npm test
- run: yarn install
- run: yarn test
- uses: fregante/daily-version-action@v1
name: Create tag if necessary
id: daily-version
Expand All @@ -38,22 +38,21 @@ jobs:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
#- run: npm ci
- run: yarn install --frozen-lockfile

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run:
npm install
npm run build --if-present
npm test
- name: yarn install, build, and test
run: |
yarn build --if-present
yarn test
- name: Update extension’s meta
env:
VER: ${{ needs.Version.outputs.version }}
run: |
echo https://github.com/$GITHUB_REPOSITORY/tree/$VER > distribution/SOURCE_URL.txt
npm run version
yarn version
- uses: actions/upload-artifact@v2
with:
path: distribution
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"test-watch": "jest --watch test/",
"lint": "eslint .",
"lint-fix": "eslint --fix .",
"version": "dot-json manifest.json version $VER",
"version": "yarn dot-json manifest.json version $VER",
"release": "VER=$(daily-version) run-s build version",
"release:amo": "web-ext-submit --source-dir distribution",
"release:cws": "webstore upload --source=distribution --auto-publish",
Expand Down

0 comments on commit 55e71ee

Please sign in to comment.