v1.15.4 #26
Workflow file for this run
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 workflow will run tests using node and then publish a package to Snapcraft when a release is created | |
name: Publish to Snapcraft | |
on: | |
workflow_dispatch: | |
release: | |
types: [published] | |
permissions: | |
issues: read | |
pull-requests: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- run: npm ci | |
name: Install dependencies | |
- run: npm run build -w packages/notification | |
- run: npm test | |
name: Run tests | |
- run: npm pack | |
name: Pack using npm pack | |
- run: npm install -g ./hyperjumptech-monika-*.tgz | |
name: Install the packed npm package | |
- run: npm run prod_test | |
name: Run production test | |
build: | |
runs-on: ubuntu-latest | |
needs: test | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- run: npm ci | |
- run: npm run build -w packages/notification | |
name: Install dependencies | |
- run: npm install -g oclif | |
name: Install Oclif | |
- run: oclif pack tarballs --targets=linux-x64 --no-xz | |
name: Pack as tarball | |
- run: mv dist/monika*.tar.gz . | |
name: Move the tarball from dist folder to root | |
- run: mv monika*.tar.gz monika.tar.gz | |
name: Rename tarball | |
- uses: snapcore/action-build@v1 | |
id: snapcraft | |
name: Build Snap package | |
- uses: snapcore/action-publish@v1 | |
with: | |
store_login: ${{ secrets.STORE_LOGIN }} | |
snap: ${{ steps.snapcraft.outputs.snap }} | |
release: edge |