release: bump version to v1.1.3 #2
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
name: Create Release & Publish Package to npmjs | |
on: | |
push: | |
tags: | |
- "v*" | |
env: | |
NODE_VERSION: 18.x | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "${{ env.NODE_VERSION }}" | |
registry-url: "https://registry.npmjs.org" | |
- name: Set Version | |
run: | | |
npm version --no-commit-hooks --allow-same-version --no-git-tag-version ${{ github.ref_name }} | |
npm version | |
- name: Install dependencies | |
run: npm install | |
- name: Run lint | |
run: npm run lint | |
- name: Build app | |
run: | | |
# Running test | |
if [[ "$(node --version)" == "v18"* || "$(node --version)" == "v20"* ]]; then | |
export NODE_OPTIONS=--openssl-legacy-provider | |
echo HI | |
fi | |
npm run dist | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: build | |
path: publish | |
- name: Archive Release | |
uses: thedoctor0/[email protected] | |
with: | |
type: zip | |
filename: joplin-plugin-remote-note-pull.zip | |
path: publish | |
- name: Create GH release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: Release ${{ github.ref_name }} | |
generate_release_notes: true | |
prerelease: false | |
files: joplin-plugin-remote-note-pull.zip | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Push npm package | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |