Skip to content

chore(CI/CD): 💩

chore(CI/CD): 💩 #7

Workflow file for this run

# name: "🚀 release"
# on:
# push:
# branches:
# - master
# jobs:
# release:
# name: 🚀 release
# runs-on: ubuntu-latest
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# steps:
# - name: 📚 checkout
# uses: actions/checkout@v2.1.1
# - name: 🟢 node
# uses: actions/setup-node@v1.4.2
# with:
# node-version: 12
# registry-url: https://registry.npmjs.org
# - name: version release
# uses: rymndhng/release-on-push-action@master
# with:
# bump_version_scheme: minor
# use_github_release_notes: true
# - name: 🚀 publish
# run: npm publish --access public
# working-directory: my-package
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
name: Publish
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
publish:
permissions: write-all
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14
- name: Install dependencies
run: npm install
# - name: Create GitHub Release
# id: create_release
# uses: actions/create-release@v1
# with:
# folder: my-package
# tag_name: v1.0.0
# release_name: Release ${{ github.ref }}
# draft: false
# prerelease: false
- name: Publish to npm
working-directory: ./dist/flag-pipe
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}