Skip to content

fix(core): Fix actions #41

fix(core): Fix actions

fix(core): Fix actions #41

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name: Release SvelteSimpleIcons
on:
push:
branches:
- main
release:
types: [created]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- uses: actions/checkout@v4
- name: 🔥 Setup corepack
run: corepack enable
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: "pnpm"
- name: 📦 Install Dependencies
run: |
pnpm --version && pnpm install --frozen-lockfile
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 🔥 Run generate:icons
run: pnpm run generate:icons
- name: 💣 Run build
run: pnpm run build
# - name: Delete tags
# run: |
# git tag | xargs git tag -d
- name: Create Release Pull Request or Publish to GitHub Packages 📦
uses: changesets/action@v1
with:
publish: yarn release
commit: "ci(Release): version icons-pack/react-simple-icons"
title: "ci(Release): version icons-pack/react-simple-icons"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}