update notes #1
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: Publish Plugin To NPM | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
jobs: | ||
build_and_publish: | ||
runs-on: ubuntu-latest | ||
name: Build and publish package | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Set Node 18.x | ||
uses: actions/setup-node@v4 | ||
node-version-file: '.nvmrc' | ||
Check failure on line 19 in .github/workflows/publish-to-npm.yml GitHub Actions / Publish Plugin To NPMInvalid workflow file
|
||
registry-url: 'https://registry.npmjs.org' | ||
scope: '@dylmye' | ||
cache: yarn | ||
- name: Install dependencies | ||
run: yarn --frozen-lockfile | ||
- name: Build package | ||
run: yarn build plugin | ||
- name: Publish to NPM | ||
run: yarn publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
create_release: | ||
runs-on: ubuntu-latest | ||
name: Create GitHub release | ||
needs: build_and_publish | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Create release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
generate_release_notes: true |