Skip to content

Commit

Permalink
fix(action): test CI and fixes for usage with tauri beta-rc (#114)
Browse files Browse the repository at this point in the history
Co-authored-by: David Lemarier <david@lemarier.ca>
  • Loading branch information
lucasfernog and lemarier committed Apr 28, 2021
1 parent b874256 commit dbbc6b4
Show file tree
Hide file tree
Showing 48 changed files with 226 additions and 4,434 deletions.
49 changes: 40 additions & 9 deletions .changes/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,54 @@
"pkgManagers": {
"javascript": {
"version": true,
"build": false,
"preversion": "yarn pkg",
"publish": false,
"getPublishedVersion": false,
"assets": false
"getPublishedVersion": "npm view ${ pkg.pkg } version",
"prepublish": [
{
"command": "npm pack",
"dryRunCommand": true
}
],
"publish": [
{
"command": "echo # Package Publish",
"dryRunCommand": "echo # Package Publish",
"pipe": true
},
{
"command": "npm publish --access public",
"dryRunCommand": "echo publish here",
"pipe": true
}
]
}
},
"packages": {
"core": {
"path": "./packages/core",
"manager": "javascript"
},
"action": {
"path": "./packages/action",
"manager": "javascript",
"postpublish": [
"git tag ${ pkg.pkg }-v${ pkgFile.versionMajor } -f",
"git tag ${ pkg.pkg }-v${ pkgFile.versionMajor }.${ pkgFile.versionMinor } -f",
"git push --tags -f"
],
"dependencies": [
"core"
],
"assets": [
{
"path": "./packages/action/tauri-action-${ pkgFile.version }.tgz",
"name": "tauri-action-${ pkgFile.version }.tgz"
}
]
},
"core": {
"path": "./packages/core",
"manager": "javascript",
"assets": [
{
"path": "./packages/core/tauri-apps-action-core-${ pkgFile.version }.tgz",
"name": "action-core-${ pkgFile.version }.tgz"
}
]
}
}
Expand Down
1 change: 1 addition & 0 deletions .changes/tauri-beta-rc.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
"action": minor
"core": minor
---

Update to Tauri beta release candidate.
14 changes: 7 additions & 7 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: setup node
uses: actions/setup-node@v1
with:
node-version: 12
node-version: 14
- name: install Rust stable
uses: actions-rs/toolchain@v1
with:
Expand All @@ -28,26 +28,26 @@ jobs:
- name: build action
run: |
yarn
yarn build
yarn workspaces run build
- name: install example dependencies
run: yarn
working-directory: ./__fixtures__/example
- uses: ./
working-directory: ./packages/action/__fixtures__/example
- uses: ./packages/action
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
projectPath: ./__fixtures__/example
projectPath: ./packages/action/__fixtures__/example
iconPath: ./icon.png
tagName: example-v__VERSION__
releaseName: "Release example app v__VERSION__"
releaseBody: "See the assets to download this version and install."
releaseDraft: true
prerelease: false
- uses: ./
- uses: ./packages/action
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
projectPath: ./__fixtures__/example-with-tauri
projectPath: ./packages/action/__fixtures__/example-with-tauri
tagName: example-with-tauri-v__VERSION__
releaseName: "Release example with preconfigured Tauri app v__VERSION__"
releaseBody: "See the assets to download this version and install."
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ dist
# but we want the action dist
!packages/action/dist
!packages/action/dist/**
!packages/action/__fixtures__/**/dist
8 changes: 0 additions & 8 deletions __fixtures__/example-with-tauri/dist/index.html

This file was deleted.

8 changes: 0 additions & 8 deletions __fixtures__/example/dist/index.html

This file was deleted.

Loading

0 comments on commit dbbc6b4

Please sign in to comment.